OPN: fix block not working on ExtCh

issue #2504
This commit is contained in:
tildearrow 2025-05-21 18:26:47 -05:00
parent ceb397b429
commit 26a66ad4c4
5 changed files with 5 additions and 0 deletions

View file

@ -37,6 +37,7 @@ void DivPlatformGenesisExt::commitStateExt(int ch, DivInstrument* ins) {
}
chan[extChanOffs].state.fms=ins->fm.fms;
chan[extChanOffs].state.ams=ins->fm.ams;
chan[extChanOffs].state.block=ins->fm.block;
chan[extChanOffs].state.op[ordch]=ins->fm.op[ordch];
}

View file

@ -31,6 +31,7 @@ void DivPlatformYM2203Ext::commitStateExt(int ch, DivInstrument* ins) {
if (ch==0 || fbAllOps) {
chan[2].state.fb=ins->fm.fb;
}
chan[extChanOffs].state.block=ins->fm.block;
chan[2].state.op[ordch]=ins->fm.op[ordch];
}

View file

@ -34,6 +34,7 @@ void DivPlatformYM2608Ext::commitStateExt(int ch, DivInstrument* ins) {
}
chan[2].state.fms=ins->fm.fms;
chan[2].state.ams=ins->fm.ams;
chan[extChanOffs].state.block=ins->fm.block;
chan[2].state.op[ordch]=ins->fm.op[ordch];
}

View file

@ -30,6 +30,7 @@ void DivPlatformYM2610BExt::commitStateExt(int ch, DivInstrument* ins) {
}
chan[extChanOffs].state.fms=ins->fm.fms;
chan[extChanOffs].state.ams=ins->fm.ams;
chan[extChanOffs].state.block=ins->fm.block;
chan[extChanOffs].state.op[ordch]=ins->fm.op[ordch];
}

View file

@ -30,6 +30,7 @@ void DivPlatformYM2610Ext::commitStateExt(int ch, DivInstrument* ins) {
}
chan[extChanOffs].state.fms=ins->fm.fms;
chan[extChanOffs].state.ams=ins->fm.ams;
chan[extChanOffs].state.block=ins->fm.block;
chan[extChanOffs].state.op[ordch]=ins->fm.op[ordch];
}