summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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