NES: fix 12xx changing volume after note off
This commit is contained in:
parent
b073689ac9
commit
5cfd74b45f
|
@ -490,7 +490,7 @@ int DivPlatformNES::dispatch(DivCommand c) {
|
||||||
chan[c.chan].duty=c.value;
|
chan[c.chan].duty=c.value;
|
||||||
if (c.chan==3) { // noise
|
if (c.chan==3) { // noise
|
||||||
chan[c.chan].freqChanged=true;
|
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));
|
rWrite(0x4000+c.chan*4,0x30|chan[c.chan].outVol|((chan[c.chan].duty&3)<<6));
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Reference in New Issue