SNES: get samples working

This commit is contained in:
tildearrow 2022-09-24 18:47:28 -05:00
parent 3f6ca8f650
commit 2c7abb4635

View file

@ -493,7 +493,7 @@ void DivPlatformSNES::renderSamples() {
int actualLength=MIN((int)(getSampleMemCapacity()-memPos)/9*9,length); int actualLength=MIN((int)(getSampleMemCapacity()-memPos)/9*9,length);
if (actualLength>0) { if (actualLength>0) {
s->offSNES=memPos; s->offSNES=memPos;
memcpy(&sampleMem[memPos],s->data8,actualLength); memcpy(&sampleMem[memPos],s->dataBRR,actualLength);
memPos+=actualLength; memPos+=actualLength;
} }
if (actualLength<length) { if (actualLength<length) {