ndspChnReset: Bump syncCount in order to force the DSP to reset the channel

This commit is contained in:
fincs 2020-06-08 00:24:24 +02:00
parent beaebaaf26
commit 36b618e3bb
No known key found for this signature in database
GPG Key ID: 62C7609ADA219C60

View File

@ -50,7 +50,7 @@ void ndspChnReset(int id)
ndspChnSt* chn = &ndspChn[id];
LightLock_Lock(&chn->lock);
chn->flags = ~0;
chn->syncCount = 1;
chn->syncCount ++;
chn->waveBufSeqPos = 0;
chn->samplePos = 0;
chn->waveBuf = NULL;
@ -274,6 +274,7 @@ void ndspiInitChn(void)
for (i = 0; i < 24; i ++)
{
LightLock_Init(&ndspChn[i].lock);
ndspChn[i].syncCount = 0;
ndspChnReset(i);
}
}