SNES: inject end of sample if not looping
This commit is contained in:
parent
4cf149d12a
commit
0b7e26bf53
|
|
@ -981,6 +981,9 @@ void DivPlatformSNES::renderSamples(int sysID) {
|
||||||
// inject loop if needed
|
// inject loop if needed
|
||||||
if (s->loop) {
|
if (s->loop) {
|
||||||
copyOfSampleMem[memPos+actualLength-9]|=3;
|
copyOfSampleMem[memPos+actualLength-9]|=3;
|
||||||
|
} else {
|
||||||
|
copyOfSampleMem[memPos+actualLength-9]&=~3;
|
||||||
|
copyOfSampleMem[memPos+actualLength-9]|=1;
|
||||||
}
|
}
|
||||||
memCompo.entries.push_back(DivMemoryEntry(DIV_MEMORY_SAMPLE,"Sample",i,memPos,memPos+actualLength));
|
memCompo.entries.push_back(DivMemoryEntry(DIV_MEMORY_SAMPLE,"Sample",i,memPos,memPos+actualLength));
|
||||||
memPos+=actualLength;
|
memPos+=actualLength;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue