aboutsummaryrefslogtreecommitdiff
path: root/quantum/audio.c
diff options
context:
space:
mode:
Diffstat (limited to 'quantum/audio.c')
-rw-r--r--quantum/audio.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/quantum/audio.c b/quantum/audio.c
index e0413051a..627e3d80a 100644
--- a/quantum/audio.c
+++ b/quantum/audio.c
@@ -351,6 +351,7 @@ void play_notes(float (*np)[][2], uint8_t n_count, bool n_repeat, float n_rest)
351 351
352if (audio_config.enable) { 352if (audio_config.enable) {
353 353
354 // Cancel note if a note is playing
354 if (note) 355 if (note)
355 stop_all_notes(); 356 stop_all_notes();
356 notes = true; 357 notes = true;
@@ -406,6 +407,7 @@ void play_note(double freq, int vol) {
406 407
407if (audio_config.enable && voices < 8) { 408if (audio_config.enable && voices < 8) {
408 409
410 // Cancel notes if notes are playing
409 if (notes) 411 if (notes)
410 stop_all_notes(); 412 stop_all_notes();
411 note = true; 413 note = true;
@@ -471,3 +473,16 @@ void increase_tempo(uint8_t tempo_change)
471 } 473 }
472} 474}
473 475
476//------------------------------------------------------------------------------
477// Override these functions in your keymap file to play different tunes on
478// startup and bootloader jump
479__attribute__ ((weak))
480void play_startup_tone()
481{
482}
483
484__attribute__ ((weak))
485void play_goodbye_tone()
486{
487}
488//------------------------------------------------------------------------------