diff options
author | IBNobody <ibnobody@gmail.com> | 2016-04-17 20:14:37 -0500 |
---|---|---|
committer | IBNobody <ibnobody@gmail.com> | 2016-04-17 20:14:37 -0500 |
commit | 5c98ad59606ee95b82c27bf2525383a9ec88542b (patch) | |
tree | 99124a3567045aff6922a39a7062f27bd38e132a /quantum/audio.c | |
parent | 23231fa577f7c6c585124226a83f21a7668e62dd (diff) | |
download | qmk_firmware-5c98ad59606ee95b82c27bf2525383a9ec88542b.tar.gz qmk_firmware-5c98ad59606ee95b82c27bf2525383a9ec88542b.zip |
Added extra songs, LED indicator notes
Diffstat (limited to 'quantum/audio.c')
-rw-r--r-- | quantum/audio.c | 17 |
1 files changed, 15 insertions, 2 deletions
diff --git a/quantum/audio.c b/quantum/audio.c index 3ccd5ab9bc..6023669739 100644 --- a/quantum/audio.c +++ b/quantum/audio.c @@ -351,7 +351,7 @@ void play_notes(float (*np)[][2], uint8_t n_count, bool n_repeat, float n_rest) if (audio_config.enable) { - if (note) + if (note || notes) stop_all_notes(); notes_pointer = np; @@ -406,7 +406,7 @@ void play_note(double freq, int vol) { if (audio_config.enable && voices < 8) { - if (notes) + if (note || notes) stop_all_notes(); #ifdef PWM_AUDIO freq = freq / SAMPLE_RATE; @@ -471,3 +471,16 @@ void increase_tempo(uint8_t tempo_change) } } +//------------------------------------------------------------------------------ +// Override these functions in your keymap file to play different tunes on +// startup and bootloader jump +__attribute__ ((weak)) +void play_startup_tone() +{ +} + +__attribute__ ((weak)) +void play_goodbye_tone() +{ +} +//------------------------------------------------------------------------------ |