audio: Don't play the first note of zero-note melodies (#21661)

master
Nebuleon 2 years ago committed by GitHub
parent b2d068d1aa
commit f0c9453083
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      quantum/audio/audio.c

@ -311,6 +311,10 @@ void audio_play_melody(float (*np)[][2], uint16_t n_count, bool n_repeat) {
return;
}
if (n_count == 0) {
return;
}
if (!audio_initialized) {
audio_init();
}

Loading…
Cancel
Save