diff options
author | Jack Humbert <jack.humb@gmail.com> | 2016-04-18 21:04:29 -0400 |
---|---|---|
committer | Jack Humbert <jack.humb@gmail.com> | 2016-04-18 21:04:29 -0400 |
commit | 78b3a88154914591d2c3433b123d4b80e70f511d (patch) | |
tree | cfbbdf10c9008269c86f0756623a99e71ff085bf /quantum/audio.c | |
parent | e49712b5593b887c8af18aeb7196513f1c7b7bcf (diff) | |
parent | f2c1e9ddd40573f4b44ffc2ec7df1fb76346f627 (diff) |
merging in #262
Diffstat (limited to 'quantum/audio.c')
-rw-r--r-- | quantum/audio.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/quantum/audio.c b/quantum/audio.c index 6a5d43013a..d8768f1609 100644 --- a/quantum/audio.c +++ b/quantum/audio.c @@ -361,6 +361,7 @@ void play_notes(float (*np)[][2], uint8_t n_count, bool n_repeat, float n_rest) if (audio_config.enable) { + // Cancel note if a note is playing if (note) stop_all_notes(); notes = true; @@ -416,6 +417,7 @@ void play_note(double freq, int vol) { if (audio_config.enable && voices < 8) { + // Cancel notes if notes are playing if (notes) stop_all_notes(); note = true; |