From 4fbb849c7f69d9e52c7ddd73e0bad0970f235891 Mon Sep 17 00:00:00 2001 From: Krzysztof Foltman Date: Fri, 31 Jul 2009 18:48:23 +0100 Subject: [PATCH] + Flanger, MultiChorus: apply fixes for uninitialized variables proposed by Damon Chaplin --- src/calf/audio_fx.h | 2 +- src/calf/modules.h | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/calf/audio_fx.h b/src/calf/audio_fx.h index 003abb1..d2f6498 100644 --- a/src/calf/audio_fx.h +++ b/src/calf/audio_fx.h @@ -307,7 +307,7 @@ public: : fb(0) {} void reset() { delay.reset(); - last_delay_pos = 0; + last_delay_pos = last_actual_delay_pos = ramp_delay_pos = 0; ramp_pos = 1024; } virtual void setup(int sample_rate) { diff --git a/src/calf/modules.h b/src/calf/modules.h index 7b06f7f..fce36c3 100644 --- a/src/calf/modules.h +++ b/src/calf/modules.h @@ -775,6 +775,7 @@ public: multichorus_audio_module() { is_active = false; + last_r_phase = -1; } void params_changed() -- 2.11.4.GIT