From c6e85d76d08a54e912373fefb8ed6b47ad6a4d4b Mon Sep 17 00:00:00 2001 From: Sean Maas Date: Thu, 4 Mar 2021 22:32:54 -0500 Subject: [PATCH] Fix high notes occasionally not initing properly --- src/nds/arm7/nds_audio.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/nds/arm7/nds_audio.c b/src/nds/arm7/nds_audio.c index 30217423..c68599f4 100644 --- a/src/nds/arm7/nds_audio.c +++ b/src/nds/arm7/nds_audio.c @@ -33,7 +33,7 @@ void play_notes(struct Note *notes) { struct Note *note = ¬es[i]; if (note->enabled && note->sound != NULL) { - if (note->needsInit) { + if (note->needsInit || ((SCHANNEL_CR(i) & SCHANNEL_ENABLE) && (note->frequency >= 2.0f) != (bool)(high_freqs & BIT(i)))) { const struct AudioBankSample *sample = note->sound->sample; const u32 loop = (sample->loop->count ? SOUND_REPEAT : SOUND_ONE_SHOT);