VIC-20: fix on/off or note off during forceIns()

for real this time
issue #2539
This commit is contained in:
tildearrow 2025-06-11 18:10:51 -05:00
parent 98e98ad5be
commit a27f76590f

View file

@ -284,13 +284,13 @@ void DivPlatformVIC20::muteChannel(int ch, bool mute) {
void DivPlatformVIC20::forceIns() { void DivPlatformVIC20::forceIns() {
for (int i=0; i<4; i++) { for (int i=0; i<4; i++) {
chan[i].insChanged=true; chan[i].insChanged=true;
// I give up! if (chan[i].onOff && chan[i].active) {
if (chan[i].onOff) {
chan[i].freqChanged=true; chan[i].freqChanged=true;
} else { } else {
chan[i].freqChanged=false; chan[i].freqChanged=false;
chan[i].keyOff=true; chan[i].keyOff=true;
chan[i].keyOn=false; chan[i].keyOn=false;
chan[i].waveWriteCycle=-1;
} }
writeOutVol(i); writeOutVol(i);
} }