fix volume after note off

This commit is contained in:
tildearrow 2021-12-29 00:52:20 -05:00
parent 6222e0933a
commit 3e34c60b32
4 changed files with 9 additions and 7 deletions

View file

@ -174,7 +174,7 @@ int DivPlatformPCE::dispatch(DivCommand c) {
chan[c.chan].vol=c.value;
if (!chan[c.chan].std.hasVol) {
chan[c.chan].outVol=c.value;
chWrite(c.chan,0x04,0x80|chan[c.chan].outVol);
if (chan[c.chan].active) chWrite(c.chan,0x04,0x80|chan[c.chan].outVol);
}
}
break;