]> git.donarmstrong.com Git - qmk_firmware.git/blobdiff - quantum/audio.c
Notes Bugfix
[qmk_firmware.git] / quantum / audio.c
index 60236697392c24c2ae583885d91c4e55f4ee7cb5..ba85e418ed655939993e8e7f08151640351c4749 100644 (file)
@@ -351,7 +351,8 @@ void play_notes(float (*np)[][2], uint8_t n_count, bool n_repeat, float n_rest)
 
 if (audio_config.enable) {
 
-    if (note || notes)
+       // Cancel note if a note is playing
+    if (note)
         stop_all_notes();
 
     notes_pointer = np;
@@ -406,7 +407,8 @@ void play_note(double freq, int vol) {
 
 if (audio_config.enable && voices < 8) {
 
-    if (note || notes)
+    // Cancel notes if notes are playing
+    if (notes)
         stop_all_notes();
     #ifdef PWM_AUDIO
         freq = freq / SAMPLE_RATE;