Synchronize the OPL4 PCM per-channel OSC volume between the openMSX core and the ymfm core.

Also add psikyo arcade presets.
This commit is contained in:
cam900 2024-07-17 18:15:23 +09:00
parent 49c214f72e
commit 4174be22c1
2 changed files with 25 additions and 1 deletions

View file

@ -646,7 +646,7 @@ void DivPlatformOPL::acquire_ymfm4(short** buf, size_t len) {
chOut+=pcmChan[i]->debug_output(1);
chOut+=pcmChan[i]->debug_output(2);
chOut+=pcmChan[i]->debug_output(3);
oscBuf[oscOffs]->data[oscBuf[oscOffs]->needle++]=CLAMP(chOut,-32768,32767);
oscBuf[oscOffs]->data[oscBuf[oscOffs]->needle++]=CLAMP(chOut<<1,-32768,32767);
}
}
}

View file

@ -1847,6 +1847,30 @@ void FurnaceGUI::initSystemPresets() {
}
);
ENTRY(
"Psikyo", {}
);
SUB_ENTRY(
"Psikyo 68EC020 hardware with OPL4", {
CH(DIV_SYSTEM_OPL4, 1.0f, 0, "")
}
);
SUB_ENTRY(
"Psikyo 68EC020 hardware with OPL4 (drums mode)", {
CH(DIV_SYSTEM_OPL4_DRUMS, 1.0f, 0, "")
}
);
SUB_ENTRY(
"Psikyo SH-2 hardware", {
CH(DIV_SYSTEM_OPL4, 1.0f, 0, "clockSel=1")
}
);
SUB_ENTRY(
"Psikyo SH-2 hardware (drums mode)", {
CH(DIV_SYSTEM_OPL4_DRUMS, 1.0f, 0, "clockSel=1")
}
);
ENTRY(
"Sega", {}
);