From 28f73801cc841f1750712221b069a8eb4f7c9f1f Mon Sep 17 00:00:00 2001 From: fincs Date: Sat, 24 Oct 2015 01:05:23 +0200 Subject: [PATCH] Really fix NDSP wavebuf scheduling --- libctru/source/ndsp/ndsp-channel.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);