K007232: ???

issue #797
This commit is contained in:
tildearrow 2022-12-21 16:26:06 -05:00
parent 5ee41c5f5e
commit 2ccc525293
1 changed files with 3 additions and 3 deletions

View File

@ -529,10 +529,10 @@ void DivPlatformK007232::renderSamples(int sysID) {
}
const int length=s->getLoopEndPosition(DIV_SAMPLE_DEPTH_8BIT);
int actualLength=MIN((int)(getSampleMemCapacity()-memPos)-1,length);
int actualLength=MIN((int)(getSampleMemCapacity()-memPos)-2,length);
if (actualLength>0) {
if (actualLength>131072-1) {
actualLength=131072-1;
if (actualLength>131072-2) {
actualLength=131072-2;
}
if ((memPos&0xfe0000)!=((memPos+actualLength+1)&0xfe0000)) {
memPos=(memPos+0x1ffff)&0xfe0000;