summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Pavone <pavone@retrodev.com>2013-06-16 13:42:13 -0700
committerMike Pavone <pavone@retrodev.com>2013-06-16 13:42:13 -0700
commit0a7995ec919cc21fe19a8b8a53512b2c979bba5f (patch)
tree99f7ef5674ee2fbff0254c46644c796b2cec4c85
parentadcc84b8c3600bc6497c21ac10b1b8c85f264676 (diff)
Fix modulation condition for operator 2
-rw-r--r--ym2612.c2
1 files changed, 1 insertions, 1 deletions
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;
}