OPLL: freqChanged during note off?

This commit is contained in:
tildearrow 2022-12-25 15:54:40 -05:00
parent 513ab09e7c
commit 1fae16514c

View file

@ -456,12 +456,14 @@ int DivPlatformOPLL::dispatch(DivCommand c) {
if (c.chan>=9 && !properDrums) return 0; if (c.chan>=9 && !properDrums) return 0;
chan[c.chan].keyOff=true; chan[c.chan].keyOff=true;
chan[c.chan].keyOn=false; chan[c.chan].keyOn=false;
chan[c.chan].freqChanged=true;
chan[c.chan].active=false; chan[c.chan].active=false;
break; break;
case DIV_CMD_NOTE_OFF_ENV: case DIV_CMD_NOTE_OFF_ENV:
if (c.chan>=9 && !properDrums) return 0; if (c.chan>=9 && !properDrums) return 0;
chan[c.chan].keyOff=true; chan[c.chan].keyOff=true;
chan[c.chan].keyOn=false; chan[c.chan].keyOn=false;
chan[c.chan].freqChanged=true;
chan[c.chan].active=false; chan[c.chan].active=false;
chan[c.chan].std.release(); chan[c.chan].std.release();
break; break;