From: fincs Date: Fri, 23 Oct 2015 23:05:23 +0000 (+0200) Subject: Really fix NDSP wavebuf scheduling X-Git-Tag: v1.0.0~63 X-Git-Url: https://chaos.moe/g/?a=commitdiff_plain;h=28f73801cc841f1750712221b069a8eb4f7c9f1f;p=corbenik%2Fctrulib.git Really fix NDSP wavebuf scheduling --- diff --git a/libctru/source/ndsp/ndsp-channel.c b/libctru/source/ndsp/ndsp-channel.c index 36880db..fe5f2b8 100644 --- a/libctru/source/ndsp/ndsp-channel.c +++ b/libctru/source/ndsp/ndsp-channel.c @@ -364,6 +364,7 @@ void ndspiReadChnState(void) ndspWaveBuf* wb = chn->waveBuf; chn->samplePos = ndspiRotateVal(st->samplePos); + chn->waveBufSeqPos = seqId; if ((st->flags & 0xFF00) && wb) { @@ -381,7 +382,6 @@ void ndspiReadChnState(void) if (seqId == 0) chn->wavBufCount = 0; chn->waveBuf = wb; - chn->waveBufSeqPos = seqId; } LightLock_Unlock(&chn->lock);