Really fix NDSP wavebuf scheduling

This commit is contained in:
fincs 2015-10-24 01:05:23 +02:00
parent ebad126fc0
commit 28f73801cc

View File

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