TIA: one more mute refinement

This commit is contained in:
tildearrow 2022-01-16 01:43:55 -05:00
parent b8538fa091
commit 85c7612194

View file

@ -207,13 +207,17 @@ void DivPlatformTIA::muteChannel(int ch, bool mute) {
if (isMuted[ch]) { if (isMuted[ch]) {
rWrite(0x19+ch,0); rWrite(0x19+ch,0);
} else { } else {
rWrite(0x19+ch,chan[ch].outVol&15); if (chan[ch].active) rWrite(0x19+ch,chan[ch].outVol&15);
} }
} }
void DivPlatformTIA::forceIns() { void DivPlatformTIA::forceIns() {
for (int i=0; i<2; i++) { for (int i=0; i<2; i++) {
chan[i].insChanged=true; chan[i].insChanged=true;
if (chan[i].active) {
chan[i].freqChanged=true;
rWrite(0x19+i,chan[i].outVol&15);
}
} }
} }