From d11fe11a3caf9d2c46746709fc88e2011d76e173 Mon Sep 17 00:00:00 2001 From: Barry Harris <44396066+barry65536@users.noreply.github.com> Date: Sun, 18 Jan 2015 14:57:37 +0000 Subject: [PATCH] Fix MSM5205 sound in tbowl --- src/burn/drv/pre90s/d_tbowl.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/burn/drv/pre90s/d_tbowl.cpp b/src/burn/drv/pre90s/d_tbowl.cpp index 2ae78d200..5b4a28a99 100644 --- a/src/burn/drv/pre90s/d_tbowl.cpp +++ b/src/burn/drv/pre90s/d_tbowl.cpp @@ -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(); }