Fixed DOSBox OPL to correctly use OPL3 when it's used for such - patch from TheCollector1995;

Merged my own MPU-401 improvements with TheCollector1995's.
This commit is contained in:
OBattler
2017-05-10 20:39:46 +02:00
parent ef19f546b5
commit c165fdbaea
3 changed files with 57 additions and 17 deletions

View File

@@ -44,8 +44,8 @@ void opl_init(void (*timer_callback)(void *param, int timer, int64_t period), vo
{
if (!is_opl3 || !opl3_type)
{
DBOPL::InitTables();
opl[nr].chip.Setup(48000, 0);
DBOPL::InitTables();
opl[nr].chip.Setup(48000, is_opl3);
opl[nr].timer_callback = timer_callback;
opl[nr].timer_param = timer_param;
opl[nr].is_opl3 = is_opl3;