NES: fix 12xx changing volume after note off

This commit is contained in:
tildearrow 2022-10-24 22:56:30 -05:00
parent b073689ac9
commit 5cfd74b45f
1 changed files with 1 additions and 1 deletions

View File

@ -490,7 +490,7 @@ int DivPlatformNES::dispatch(DivCommand c) {
chan[c.chan].duty=c.value;
if (c.chan==3) { // noise
chan[c.chan].freqChanged=true;
} else if (c.chan<2) {
} else if (c.chan<2 && chan[c.chan].active) {
rWrite(0x4000+c.chan*4,0x30|chan[c.chan].outVol|((chan[c.chan].duty&3)<<6));
}
break;