fix crash when muting in ext ch mode

This commit is contained in:
tildearrow 2021-12-27 16:47:37 -05:00
parent 0001af3f35
commit 772aac5806
2 changed files with 2 additions and 2 deletions

View file

@ -197,7 +197,7 @@ void DivPlatformGenesisExt::muteChannel(int ch, bool mute) {
}
isOpMuted[ch-2]=mute;
int ordch=orderedOps[ch];
int ordch=orderedOps[ch-2];
DivInstrument* ins=parent->getIns(opChan[ch].ins);
unsigned short baseAddr=chanOffs[2]|opOffs[ordch];
DivInstrumentFM::Operator op=ins->fm.op[ordch];

View file

@ -248,7 +248,7 @@ void DivPlatformYM2610Ext::muteChannel(int ch, bool mute) {
}
isOpMuted[ch-1]=mute;
int ordch=orderedOps[ch];
int ordch=orderedOps[ch-1];
DivInstrument* ins=parent->getIns(opChan[ch].ins);
unsigned short baseAddr=chanOffs[1]|opOffs[ordch];
DivInstrumentFM::Operator op=ins->fm.op[ordch];