From 0a7995ec919cc21fe19a8b8a53512b2c979bba5f Mon Sep 17 00:00:00 2001 From: Mike Pavone Date: Sun, 16 Jun 2013 13:42:13 -0700 Subject: Fix modulation condition for operator 2 --- ym2612.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ym2612.c') diff --git a/ym2612.c b/ym2612.c index dc9c095..899230c 100644 --- a/ym2612.c +++ b/ym2612.c @@ -293,7 +293,7 @@ void ym_run(ym2612_context * context, uint32_t to_cycle) } 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; } -- cgit v1.2.3