- Since we have two OPL cores now, what's one more? Added a straight, (highly) unoptimized port

of the Java OPL3 emulator.

SVN r3967 (trunk)
This commit is contained in:
Randy Heit 2012-11-15 05:23:24 +00:00
commit e59d7bc8b8
6 changed files with 1792 additions and 31 deletions

View file

@ -323,7 +323,7 @@ int OPLio::OPLinit(uint numchips, bool stereo, bool initopl3)
{
assert(numchips >= 1 && numchips <= countof(chips));
uint i;
IsOPL3 = (opl_core == 1);
IsOPL3 = (opl_core == 1 || opl_core == 2);
memset(chips, 0, sizeof(chips));
if (IsOPL3)
@ -332,7 +332,7 @@ int OPLio::OPLinit(uint numchips, bool stereo, bool initopl3)
}
for (i = 0; i < numchips; ++i)
{
OPLEmul *chip = IsOPL3 ? DBOPLCreate(stereo) : YM3812Create(stereo);
OPLEmul *chip = IsOPL3 ? (opl_core == 1 ? DBOPLCreate(stereo) : JavaOPLCreate(stereo)) : YM3812Create(stereo);
if (chip == NULL)
{
break;