summaryrefslogtreecommitdiff
path: root/ym2612.c
diff options
context:
space:
mode:
authorMichael Pavone <pavone@retrodev.com>2021-02-15 22:10:49 -0800
committerMichael Pavone <pavone@retrodev.com>2021-02-15 22:10:49 -0800
commit6990568d41c9756eff8fd0913f649dbc63c5ba8d (patch)
treedd68d2d3f07805ba2620dcd6d2ab849861c6661f /ym2612.c
parentfa564e1589cc2fdf7800fdc04f61c2f68f647853 (diff)
Fix Timer B load bug that made games using Konami sound driver to have slower music tempo than they should
Diffstat (limited to 'ym2612.c')
-rw-r--r--ym2612.c3
1 files changed, 3 insertions, 0 deletions
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