AY: finally fix unmuting

This commit is contained in:
tildearrow 2022-06-20 18:53:39 -05:00
parent fd61e0e9f8
commit 5a1a583ab0
1 changed files with 2 additions and 2 deletions

View File

@ -489,9 +489,9 @@ void DivPlatformAY8910::muteChannel(int ch, bool mute) {
isMuted[ch]=mute;
if (isMuted[ch]) {
rWrite(0x08+ch,0);
} else if (intellivision && (chan[ch].psgMode&4)) {
} else if (intellivision && (chan[ch].psgMode&4) && chan[ch].active) {
rWrite(0x08+ch,(chan[ch].vol&0xc)<<2);
} else {
} else if (chan[ch].active) {
rWrite(0x08+ch,(chan[ch].outVol&15)|((chan[ch].psgMode&4)<<2));
}
}