diff --git a/src/engine/platform/nds.cpp b/src/engine/platform/nds.cpp index d002ed419..ca203b25d 100644 --- a/src/engine/platform/nds.cpp +++ b/src/engine/platform/nds.cpp @@ -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) {