mirror of
https://github.com/tildearrow/furnace.git
synced 2025-01-06 07:31:19 +00:00
Genesis/Neo Geo: fix extended channel mode volume
This commit is contained in:
parent
64745648a0
commit
a956f37f1b
2 changed files with 2 additions and 6 deletions
|
@ -62,10 +62,8 @@ int DivPlatformGenesisExt::dispatch(DivCommand c) {
|
||||||
DivInstrumentFM::Operator op=ins->fm.op[ordch];
|
DivInstrumentFM::Operator op=ins->fm.op[ordch];
|
||||||
if (isOpMuted[ch]) {
|
if (isOpMuted[ch]) {
|
||||||
rWrite(baseAddr+0x40,127);
|
rWrite(baseAddr+0x40,127);
|
||||||
} else if (isOutput[ins->fm.alg][ordch]) {
|
|
||||||
rWrite(baseAddr+0x40,127-(((127-op.tl)*(opChan[ch].vol&0x7f))/127));
|
|
||||||
} else {
|
} else {
|
||||||
rWrite(baseAddr+0x40,op.tl);
|
rWrite(baseAddr+0x40,127-(((127-op.tl)*(opChan[ch].vol&0x7f))/127));
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
|
@ -62,10 +62,8 @@ int DivPlatformYM2610Ext::dispatch(DivCommand c) {
|
||||||
DivInstrumentFM::Operator op=ins->fm.op[ordch];
|
DivInstrumentFM::Operator op=ins->fm.op[ordch];
|
||||||
if (isOpMuted[ch]) {
|
if (isOpMuted[ch]) {
|
||||||
rWrite(baseAddr+0x40,127);
|
rWrite(baseAddr+0x40,127);
|
||||||
} else if (isOutput[ins->fm.alg][ordch]) {
|
|
||||||
rWrite(baseAddr+0x40,127-(((127-op.tl)*(opChan[ch].vol&0x7f))/127));
|
|
||||||
} else {
|
} else {
|
||||||
rWrite(baseAddr+0x40,op.tl);
|
rWrite(baseAddr+0x40,127-(((127-op.tl)*(opChan[ch].vol&0x7f))/127));
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue