mirror of
https://github.com/tildearrow/furnace.git
synced 2024-11-24 21:45:12 +00:00
Fix LFO disable/enable behavior for YM2151.
This commit is contained in:
parent
a8a38dce2b
commit
807848cfee
1 changed files with 13 additions and 5 deletions
|
@ -616,6 +616,12 @@ int DivPlatformArcade::dispatch(DivCommand c) {
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case DIV_CMD_FM_LFO: {
|
case DIV_CMD_FM_LFO: {
|
||||||
|
if(c.value==0) {
|
||||||
|
rWrite(0x01,0x02);
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
rWrite(0x01,0x00);
|
||||||
|
}
|
||||||
rWrite(0x18,c.value);
|
rWrite(0x18,c.value);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
@ -938,6 +944,8 @@ void DivPlatformArcade::reset() {
|
||||||
pmDepth=0x7f;
|
pmDepth=0x7f;
|
||||||
|
|
||||||
//rWrite(0x18,0x10);
|
//rWrite(0x18,0x10);
|
||||||
|
immWrite(0x01,0x02); // LFO Off
|
||||||
|
immWrite(0x18,0x00); // LFO Freq Off
|
||||||
immWrite(0x19,amDepth);
|
immWrite(0x19,amDepth);
|
||||||
immWrite(0x19,0x80|pmDepth);
|
immWrite(0x19,0x80|pmDepth);
|
||||||
//rWrite(0x1b,0x00);
|
//rWrite(0x1b,0x00);
|
||||||
|
|
Loading…
Reference in a new issue