From 6990568d41c9756eff8fd0913f649dbc63c5ba8d Mon Sep 17 00:00:00 2001 From: Michael Pavone Date: Mon, 15 Feb 2021 22:10:49 -0800 Subject: Fix Timer B load bug that made games using Konami sound driver to have slower music tempo than they should --- ym2612.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'ym2612.c') diff --git a/ym2612.c b/ym2612.c index c6366c0..92c4706 100644 --- a/ym2612.c +++ b/ym2612.c @@ -407,6 +407,9 @@ void ym_run_timers(ym2612_context *context) context->timer_b = context->timer_b_load; } } + } else if (context->timer_control & BIT_TIMERB_LOAD) { + context->timer_control &= ~BIT_TIMERB_LOAD; + context->timer_b = context->timer_b_load; } context->sub_timer_b += 0x10; //Update LFO -- cgit v1.2.3