fix issue with 3DS music not playing after entering the game 3 times

This commit is contained in:
camthehaxman 2024-01-18 18:01:39 -06:00
parent 13965dbf2a
commit a41fda79da

View File

@ -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;