1
0
Fork 0

fix opl3 4op connection mode selection

Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@3175
This commit is contained in:
Sebastian Strohhäcker 2008-07-04 19:15:53 +00:00
parent d204f38ea5
commit b77f1e69e3

View file

@ -2103,7 +2103,7 @@ static void OPL3WriteReg(OPL3 *chip, int r, int v)
case 9: case 10: case 11:
if (CH->extended)
{
UINT8 conn = (CH->SLOT[SLOT1].CON<<1) || ((CH+3)->SLOT[SLOT1].CON<<0);
UINT8 conn = (CH->SLOT[SLOT1].CON<<1) | ((CH+3)->SLOT[SLOT1].CON<<0);
switch(conn)
{
case 0:
@ -2155,7 +2155,7 @@ static void OPL3WriteReg(OPL3 *chip, int r, int v)
case 12: case 13: case 14:
if ((CH-3)->extended)
{
UINT8 conn = ((CH-3)->SLOT[SLOT1].CON<<1) || (CH->SLOT[SLOT1].CON<<0);
UINT8 conn = ((CH-3)->SLOT[SLOT1].CON<<1) | (CH->SLOT[SLOT1].CON<<0);
switch(conn)
{
case 0: