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;