Fix MSM5205 sound in tbowl

This commit is contained in:
Barry Harris 2015-01-18 14:57:37 +00:00
parent 2b206da7d4
commit d11fe11a3c
1 changed files with 3 additions and 2 deletions

View File

@ -296,7 +296,8 @@ static void __fastcall tbowl_sound_write(UINT16 address, UINT8 data)
case 0xe004:
case 0xe005:
MSM5205SetRoute(address & 1, (data & 0x7f) * 100 / 0x7f, BURN_SND_ROUTE_BOTH);
data &= 0x7f;
MSM5205SetRoute(address & 1, (double)data / 0x7f, BURN_SND_ROUTE_BOTH);
return;
}
}
@ -720,7 +721,7 @@ static INT32 DrvFrame()
ZetClose();
ZetOpen(2);
BurnTimerUpdateYM3812(i * (nTotalCycles[1] / nInterleave));
BurnTimerUpdateYM3812((i + 1) * (nTotalCycles[2] / nInterleave));
MSM5205Update();
ZetClose();
}