OPLL: now add a partial fix to issue #289

does not fulfill "apply pitch to all channels" suggestion yet though
This commit is contained in:
tildearrow 2023-08-09 23:22:08 -05:00
parent dd0d6b940a
commit c6857b56f2
1 changed files with 7 additions and 1 deletions

View File

@ -886,11 +886,17 @@ void DivPlatformOPLL::forceIns() {
immWrite(0x18,0xC0);
immWrite(0x28,0x01);
}
// restore drum volumes
// restore drum volumes and state
if (properDrums) {
rWrite(0x36,DRUM_VOL(0));
rWrite(0x37,DRUM_VOL(1)|(DRUM_VOL(4)<<4));
rWrite(0x38,DRUM_VOL(3)|(DRUM_VOL(2)<<4));
chan[6].freqChanged=true;
chan[7].freqChanged=true;
chan[8].freqChanged=true;
chan[9].freqChanged=true;
chan[10].freqChanged=true;
}
drumState=0;
}