More fixes

This commit is contained in:
cam900 2023-04-02 15:49:12 +09:00
parent 8f783e604a
commit f56e09606a

View file

@ -161,8 +161,8 @@ void DivPlatformK053260::tick(bool sysTick) {
start=start+MIN(chan[i].audPos,s->length8);
length=MAX(1,length-chan[i].audPos);
}
start=MIN(start,getSampleMemCapacity()-31);
length=MIN(length,getSampleMemCapacity()-31);
start=MIN(start,getSampleMemCapacity());
length=MIN(65535,MIN(length,getSampleMemCapacity()));
rWrite(0x28,keyoff); // force keyoff first
rWrite(0x2a,loopoff);
chWrite(i,2,length&0xff);