From 2bd332c862bc31072bbc83846e4bc7bf9ced081c Mon Sep 17 00:00:00 2001 From: MrWint Date: Sat, 25 May 2019 18:08:14 +0200 Subject: [PATCH] fix psg ch3 regression introduced in r165 --- libgambatte/src/sound/channel3.cpp | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/libgambatte/src/sound/channel3.cpp b/libgambatte/src/sound/channel3.cpp index 0d0d069f9f..aeab458d6b 100644 --- a/libgambatte/src/sound/channel3.cpp +++ b/libgambatte/src/sound/channel3.cpp @@ -168,12 +168,9 @@ void Channel3::update(uint_least32_t *buf, const unsigned long soBaseVol, unsign break; } } else { - if (outBase) { - const unsigned long out = outBase * (0 - 15ul); - - *buf += out - prevOut; - prevOut = out; - } + const unsigned long out = outBase * (0 - 15ul); + *buf += out - prevOut; + prevOut = out; cycleCounter += cycles;