mirror of
https://github.com/tildearrow/furnace.git
synced 2024-12-17 22:10:12 +00:00
SNES: loop injection
This commit is contained in:
parent
d981e59c59
commit
c2b75d26d7
1 changed files with 4 additions and 0 deletions
|
@ -783,6 +783,10 @@ void DivPlatformSNES::renderSamples() {
|
|||
if (actualLength>0) {
|
||||
sampleOff[i]=memPos;
|
||||
memcpy(©OfSampleMem[memPos],s->dataBRR,actualLength);
|
||||
// inject loop if needed
|
||||
if (s->loop) {
|
||||
copyOfSampleMem[memPos+actualLength-9]|=3;
|
||||
}
|
||||
memPos+=actualLength;
|
||||
}
|
||||
if (actualLength<length) {
|
||||
|
|
Loading…
Reference in a new issue