From 85c761219459de7876b1538bf7230be9005ddb5a Mon Sep 17 00:00:00 2001 From: tildearrow Date: Sun, 16 Jan 2022 01:43:55 -0500 Subject: [PATCH] TIA: one more mute refinement --- src/engine/platform/tia.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/engine/platform/tia.cpp b/src/engine/platform/tia.cpp index 39ba5be5..d7d7aa4d 100644 --- a/src/engine/platform/tia.cpp +++ b/src/engine/platform/tia.cpp @@ -207,13 +207,17 @@ void DivPlatformTIA::muteChannel(int ch, bool mute) { if (isMuted[ch]) { rWrite(0x19+ch,0); } else { - rWrite(0x19+ch,chan[ch].outVol&15); + if (chan[ch].active) rWrite(0x19+ch,chan[ch].outVol&15); } } void DivPlatformTIA::forceIns() { for (int i=0; i<2; i++) { chan[i].insChanged=true; + if (chan[i].active) { + chan[i].freqChanged=true; + rWrite(0x19+i,chan[i].outVol&15); + } } }