comparison ym2612.c @ 2287:8a918eb95ba8

Fix LFO regression
author Michael Pavone <pavone@retrodev.com>
date Sat, 14 Jan 2023 09:23:50 -0800
parents 5a53a8453241
children 0343f0d5add0
comparison
equal deleted inserted replaced
2286:5d3411f52d00 2287:8a918eb95ba8
422 context->lfo_counter = 0; 422 context->lfo_counter = 0;
423 context->lfo_am_step += 2; 423 context->lfo_am_step += 2;
424 context->lfo_am_step &= 0xFE; 424 context->lfo_am_step &= 0xFE;
425 context->lfo_pm_step = context->lfo_am_step / 8; 425 context->lfo_pm_step = context->lfo_am_step / 8;
426 } else { 426 } else {
427 context->lfo_counter--; 427 context->lfo_counter++;
428 } 428 }
429 } else { 429 } else {
430 context->lfo_am_step = context->lfo_pm_step = 0; 430 context->lfo_am_step = context->lfo_pm_step = 0;
431 } 431 }
432 if (context->lfo_pm_step != old_pm_step) { 432 if (context->lfo_pm_step != old_pm_step) {