Mercurial > repos > blastem
comparison ym2612.c @ 2029:1e7a63f0ccf4
Fix Timer B load bug that made games using Konami sound driver to have slower music tempo than they should
author | Michael Pavone <pavone@retrodev.com> |
---|---|
date | Mon, 15 Feb 2021 22:10:49 -0800 |
parents | 3ce38692a3f2 |
children | cfd53c94fffb |
comparison
equal
deleted
inserted
replaced
2028:e597572f45ce | 2029:1e7a63f0ccf4 |
---|---|
405 context->status |= BIT_STATUS_TIMERB; | 405 context->status |= BIT_STATUS_TIMERB; |
406 } | 406 } |
407 context->timer_b = context->timer_b_load; | 407 context->timer_b = context->timer_b_load; |
408 } | 408 } |
409 } | 409 } |
410 } else if (context->timer_control & BIT_TIMERB_LOAD) { | |
411 context->timer_control &= ~BIT_TIMERB_LOAD; | |
412 context->timer_b = context->timer_b_load; | |
410 } | 413 } |
411 context->sub_timer_b += 0x10; | 414 context->sub_timer_b += 0x10; |
412 //Update LFO | 415 //Update LFO |
413 if (context->lfo_enable) { | 416 if (context->lfo_enable) { |
414 if (context->lfo_counter) { | 417 if (context->lfo_counter) { |