mirror of
https://github.com/tildearrow/furnace.git
synced 2024-11-23 21:15:11 +00:00
fix crash when muting in ext ch mode
This commit is contained in:
parent
0001af3f35
commit
772aac5806
2 changed files with 2 additions and 2 deletions
|
@ -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];
|
||||
|
|
|
@ -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];
|
||||
|
|
Loading…
Reference in a new issue