Minor fix

This commit is contained in:
cam900 2023-04-02 15:48:30 +09:00
parent dee28d218e
commit 8f783e604a
1 changed files with 1 additions and 0 deletions

View File

@ -159,6 +159,7 @@ void DivPlatformK053260::tick(bool sysTick) {
}
if (chan[i].audPos>0) {
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);