implement brokenOutVol compat flag

#341
This commit is contained in:
tildearrow 2022-05-31 19:03:26 -05:00
parent b8a0084587
commit 1be93d9bbb
11 changed files with 32 additions and 2 deletions

View file

@ -241,6 +241,9 @@ int DivPlatformMMC5::dispatch(DivCommand c) {
chan[c.chan].active=true;
chan[c.chan].keyOn=true;
chan[c.chan].macroInit(parent->getIns(chan[c.chan].ins,DIV_INS_STD));
if (!parent->song.brokenOutVol && !chan[c.chan].std.vol.will) {
chan[c.chan].outVol=chan[c.chan].vol;
}
rWrite(0x5000+c.chan*4,0x30|chan[c.chan].vol|((chan[c.chan].duty&3)<<6));
break;
case DIV_CMD_NOTE_OFF: