fix crash when muting in ext ch mode
This commit is contained in:
parent
0001af3f35
commit
772aac5806
|
@ -197,7 +197,7 @@ void DivPlatformGenesisExt::muteChannel(int ch, bool mute) {
|
||||||
}
|
}
|
||||||
isOpMuted[ch-2]=mute;
|
isOpMuted[ch-2]=mute;
|
||||||
|
|
||||||
int ordch=orderedOps[ch];
|
int ordch=orderedOps[ch-2];
|
||||||
DivInstrument* ins=parent->getIns(opChan[ch].ins);
|
DivInstrument* ins=parent->getIns(opChan[ch].ins);
|
||||||
unsigned short baseAddr=chanOffs[2]|opOffs[ordch];
|
unsigned short baseAddr=chanOffs[2]|opOffs[ordch];
|
||||||
DivInstrumentFM::Operator op=ins->fm.op[ordch];
|
DivInstrumentFM::Operator op=ins->fm.op[ordch];
|
||||||
|
|
|
@ -248,7 +248,7 @@ void DivPlatformYM2610Ext::muteChannel(int ch, bool mute) {
|
||||||
}
|
}
|
||||||
isOpMuted[ch-1]=mute;
|
isOpMuted[ch-1]=mute;
|
||||||
|
|
||||||
int ordch=orderedOps[ch];
|
int ordch=orderedOps[ch-1];
|
||||||
DivInstrument* ins=parent->getIns(opChan[ch].ins);
|
DivInstrument* ins=parent->getIns(opChan[ch].ins);
|
||||||
unsigned short baseAddr=chanOffs[1]|opOffs[ordch];
|
unsigned short baseAddr=chanOffs[1]|opOffs[ordch];
|
||||||
DivInstrumentFM::Operator op=ins->fm.op[ordch];
|
DivInstrumentFM::Operator op=ins->fm.op[ordch];
|
||||||
|
|
Loading…
Reference in New Issue