changeset 2287:8a918eb95ba8

Fix LFO regression
author Michael Pavone <pavone@retrodev.com>
date Sat, 14 Jan 2023 09:23:50 -0800
parents 5d3411f52d00
children efc75ea79164
files ym2612.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/ym2612.c	Fri Jan 13 23:42:46 2023 -0800
+++ b/ym2612.c	Sat Jan 14 09:23:50 2023 -0800
@@ -424,7 +424,7 @@
 			context->lfo_am_step &= 0xFE;
 			context->lfo_pm_step = context->lfo_am_step / 8;
 		} else {
-			context->lfo_counter--;
+			context->lfo_counter++;
 		}
 	} else {
 		context->lfo_am_step = context->lfo_pm_step = 0;