VGM export: fix stream command glitch in direct

This commit is contained in:
tildearrow 2022-10-17 14:28:41 -05:00
parent 4723ed3972
commit 4dda45116e

View file

@ -515,7 +515,8 @@ void DivEngine::performVGMWrite(SafeWriter* w, DivSystem sys, DivRegWrite& write
break; break;
} }
} }
if (write.addr>=0xffff0000 && !directStream) { // Furnace special command if (write.addr>=0xffff0000) { // Furnace special command
if (!directStream) {
unsigned char streamID=streamOff+((write.addr&0xff00)>>8); unsigned char streamID=streamOff+((write.addr&0xff00)>>8);
logD("writing stream command %x:%x with stream ID %d",write.addr,write.val,streamID); logD("writing stream command %x:%x with stream ID %d",write.addr,write.val,streamID);
switch (write.addr&0xff) { switch (write.addr&0xff) {
@ -547,6 +548,7 @@ void DivEngine::performVGMWrite(SafeWriter* w, DivSystem sys, DivRegWrite& write
sampleDir[streamID]=write.val; sampleDir[streamID]=write.val;
break; break;
} }
}
return; return;
} }
switch (sys) { switch (sys) {