diff --git a/src/engine/platform/rf5c68.cpp b/src/engine/platform/rf5c68.cpp index fbf8e00d..7be43801 100644 --- a/src/engine/platform/rf5c68.cpp +++ b/src/engine/platform/rf5c68.cpp @@ -151,8 +151,8 @@ void DivPlatformRF5C68::tick(bool sysTick) { if (s->isLoopable()) { loop=start+s->loopStart; } - start=MIN(start,getSampleMemCapacity()-31); - loop=MIN(loop,getSampleMemCapacity()-31); + start=MIN(start,getSampleMemCapacity()-32); + loop=MIN(loop,getSampleMemCapacity()-32); rWrite(8,keyoff); // force keyoff first chWrite(i,6,start>>8); chWrite(i,4,loop&0xff); @@ -425,7 +425,7 @@ void DivPlatformRF5C68::renderSamples(int sysID) { } int length=s->getLoopEndPosition(DIV_SAMPLE_DEPTH_8BIT); - int actualLength=MIN((int)(getSampleMemCapacity()-memPos)-31,length); + int actualLength=MIN((int)(getSampleMemCapacity()-memPos)-32,length); if (actualLength>0) { sampleOffRFC[i]=memPos; for (int j=0; j0)?(val|0x80):(0-val); } // write end of sample marker - memset(&sampleMem[memPos],0xff,31); - memPos+=31; + memset(&sampleMem[memPos],0xff,32); + memPos+=32; } if (actualLength