changeset 406:b1bc1947d949

Fix modulation condition for operator 2
author Mike Pavone <pavone@retrodev.com>
date Sun, 16 Jun 2013 13:42:13 -0700
parents 042c4ba4a838
children c3abc4ada43d
files ym2612.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/ym2612.c	Sun Jun 16 13:25:45 2013 -0700
+++ b/ym2612.c	Sun Jun 16 13:42:13 2013 -0700
@@ -293,7 +293,7 @@
 				}
 				break;
 			case 2://Operator 2
-				if (chan->algorithm != 1 && chan->algorithm != 2 || chan->algorithm != 7) {
+				if (chan->algorithm != 1 && chan->algorithm != 2 && chan->algorithm != 7) {
 					//modulate by Operator 1
 					mod = context->operators[op-2].output >> YM_MOD_SHIFT;
 				}