mirror of
https://github.com/ClassiCube/ClassiCube.git
synced 2025-09-11 08:36:38 -04:00
fix issue with 3DS music not playing after entering the game 3 times
This commit is contained in:
parent
13965dbf2a
commit
a41fda79da
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user