diff ym2612.c @ 406:b1bc1947d949

Fix modulation condition for operator 2
author Mike Pavone <pavone@retrodev.com>
date Sun, 16 Jun 2013 13:42:13 -0700
parents f0a3f86595ae
children c3abc4ada43d
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;
 				}