Game Boy: fix zombie mode and macro speed

This commit is contained in:
tildearrow 2022-09-26 01:48:09 -05:00
parent 122694d7c9
commit c23b504d79

View file

@ -432,7 +432,11 @@ int DivPlatformGB::dispatch(DivCommand c) {
chan[c.chan].envVol=chan[c.chan].vol; chan[c.chan].envVol=chan[c.chan].vol;
chan[c.chan].soManyHacksToMakeItDefleCompatible=true; chan[c.chan].soManyHacksToMakeItDefleCompatible=true;
} else if (c.chan!=2) { } else if (c.chan!=2) {
chan[c.chan].envVol=chan[c.chan].vol; if (chan[c.chan].std.vol.will && !chan[c.chan].std.vol.finished) {
chan[c.chan].outVol=VOL_SCALE_LINEAR(chan[c.chan].vol&15,MIN(15,chan[c.chan].std.vol.val),15);
}
chan[c.chan].envVol=chan[c.chan].outVol;
if (!chan[c.chan].keyOn) chan[c.chan].killIt=true; if (!chan[c.chan].keyOn) chan[c.chan].killIt=true;
chan[c.chan].freqChanged=true; chan[c.chan].freqChanged=true;
} }