diff options
author | Michael Pavone <pavone@retrodev.com> | 2021-02-15 22:10:49 -0800 |
---|---|---|
committer | Michael Pavone <pavone@retrodev.com> | 2021-02-15 22:10:49 -0800 |
commit | 6990568d41c9756eff8fd0913f649dbc63c5ba8d (patch) | |
tree | dd68d2d3f07805ba2620dcd6d2ab849861c6661f | |
parent | fa564e1589cc2fdf7800fdc04f61c2f68f647853 (diff) |
Fix Timer B load bug that made games using Konami sound driver to have slower music tempo than they should
-rw-r--r-- | ym2612.c | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -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 |