summaryrefslogtreecommitdiff
path: root/quantum
diff options
context:
space:
mode:
authorRyan <fauxpark@gmail.com>2021-07-17 02:40:20 +1000
committerGitHub <noreply@github.com>2021-07-16 09:40:20 -0700
commit332a5aa7cb6dfa12ff9586ed43a5b50d9a5197a0 (patch)
treefb941df3c676bae4efc797685f6fced7dcbf1338 /quantum
parent4bef126293b8f350ae0920d465c32680566d5f9d (diff)
Move `SENDSTRING_BELL` code to `send_string.h` (#13566)
Diffstat (limited to 'quantum')
-rw-r--r--quantum/quantum.c3
-rw-r--r--quantum/send_string.c8
2 files changed, 8 insertions, 3 deletions
diff --git a/quantum/quantum.c b/quantum/quantum.c
index 9cfffd9317..56ceec5db8 100644
--- a/quantum/quantum.c
+++ b/quantum/quantum.c
@@ -49,9 +49,6 @@ float goodbye_song[][2] = GOODBYE_SONG;
# ifdef DEFAULT_LAYER_SONGS
float default_layer_songs[][16][2] = DEFAULT_LAYER_SONGS;
# endif
-# ifdef SENDSTRING_BELL
-float bell_song[][2] = SONG(TERMINAL_SOUND);
-# endif
#endif
#ifdef AUTO_SHIFT_ENABLE
diff --git a/quantum/send_string.c b/quantum/send_string.c
index 7d096b4273..1a7f7a1315 100644
--- a/quantum/send_string.c
+++ b/quantum/send_string.c
@@ -20,6 +20,14 @@
#include "send_string.h"
+#if defined(AUDIO_ENABLE) && defined(SENDSTRING_BELL)
+# include "audio.h"
+# ifndef BELL_SOUND
+# define BELL_SOUND TERMINAL_SOUND
+# endif
+float bell_song[][2] = SONG(BELL_SOUND);
+#endif
+
// clang-format off
/* Bit-Packed look-up table to convert an ASCII character to whether