mirror of
https://github.com/tildearrow/furnace.git
synced 2024-12-01 00:43:02 +00:00
TIA: one more mute refinement
This commit is contained in:
parent
b8538fa091
commit
85c7612194
1 changed files with 5 additions and 1 deletions
|
@ -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);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue