Fix sample cutoff with looping

This commit is contained in:
cam900 2023-05-02 15:14:46 +09:00
parent 523e08ed5c
commit 0e072b62b3

View file

@ -470,7 +470,7 @@ void DivPlatformK053260::renderSamples(int sysID) {
continue; continue;
} }
int length=MIN(65535,s->getLoopEndPosition(DIV_SAMPLE_DEPTH_8BIT)); int length=MIN(65535,s->getEndPosition(DIV_SAMPLE_DEPTH_8BIT));
int actualLength=MIN((int)(getSampleMemCapacity()-memPos),length); int actualLength=MIN((int)(getSampleMemCapacity()-memPos),length);
if (actualLength>0) { if (actualLength>0) {
sampleOffK053260[i]=memPos-1; sampleOffK053260[i]=memPos-1;