TIA: fix volume after note off

This commit is contained in:
tildearrow 2024-06-16 18:11:11 -05:00
parent 0fd86f33c0
commit bd7077de3c

View file

@ -197,10 +197,10 @@ int DivPlatformTIA::dispatch(DivCommand c) {
if (!chan[c.chan].std.vol.has) {
chan[c.chan].outVol=c.value;
}
if (isMuted[c.chan]) {
if (isMuted[c.chan] || !chan[c.chan].active) {
rWrite(0x19+c.chan,0);
} else {
rWrite(0x19+c.chan,chan[c.chan].vol&15);
rWrite(0x19+c.chan,chan[c.chan].outVol&15);
}
break;
}