Fix masking

This commit is contained in:
cam900 2024-02-13 12:45:41 +09:00 committed by tildearrow
parent 4822e0d060
commit d5ea50f8dc

View file

@ -532,7 +532,7 @@ void DivPlatformNDS::renderSamples(int sysID) {
continue;
}
int length=MIN(16777216,s->getCurBufLen());
int length=MIN(16777212,s->getCurBufLen());
unsigned char* src=(unsigned char*)s->getCurBuf();
int actualLength=MIN((int)(getSampleMemCapacity()-memPos),length);
if (actualLength>0) {