From a41fda79da78e221ae7b76f851c191989511f72b Mon Sep 17 00:00:00 2001 From: camthehaxman Date: Thu, 18 Jan 2024 18:01:39 -0600 Subject: [PATCH] fix issue with 3DS music not playing after entering the game 3 times --- src/Audio.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Audio.c b/src/Audio.c index 78beb13a1..5a2aec7a3 100644 --- a/src/Audio.c +++ b/src/Audio.c @@ -783,7 +783,7 @@ void Audio_Init(struct AudioContext* ctx, int buffers) { ctx->count = buffers; ctx->chanID = chanID; ctx->used = true; - + ndspChnSetInterp(ctx->chanID, NDSP_INTERP_LINEAR); } @@ -791,6 +791,7 @@ void Audio_Close(struct AudioContext* ctx) { if (ctx->used) { ndspChnWaveBufClear(ctx->chanID); ctx->channels &= ~(1 << ctx->chanID); + channelIDs &= ~(1 << ctx->chanID); } ctx->used = false;