From d6edfce6fe7b35c66293e2ed895e302a2078b746 Mon Sep 17 00:00:00 2001 From: Takamichi Horikawa Date: Mon, 21 Aug 2017 01:57:51 +0900 Subject: PMD: fixed PPZ volume lfo overflow --- fmdriver/fmdriver_pmd.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/fmdriver/fmdriver_pmd.c b/fmdriver/fmdriver_pmd.c index a7ba18d..09a95a0 100644 --- a/fmdriver/fmdriver_pmd.c +++ b/fmdriver/fmdriver_pmd.c @@ -1729,8 +1729,8 @@ static void pmd_ppz8_vol_out( // 0ba4 if (part->lfof.vol || part->lfof_b.vol) { int32_t lfovol = 0; - if (part->lfof.vol) vol += part->lfo_diff; - if (part->lfof_b.vol) vol += part->lfo_diff_b; + if (part->lfof.vol) lfovol += part->lfo_diff; + if (part->lfof_b.vol) lfovol += part->lfo_diff_b; lfovol += vol; vol = lfovol; if (lfovol < 0) { -- cgit v1.2.3