[SCM] calf/master: Initialise old-state variables to prevent "stuck" graphs.
js at users.alioth.debian.org
js at users.alioth.debian.org
Tue May 7 15:40:19 UTC 2013
The following commit has been merged in the master branch:
commit 2a795084ee9e73712a4b690b84158cc745ff1d30
Author: Krzysztof Foltman <wdev at foltman.com>
Date: Sat Aug 28 09:56:32 2010 +0100
Initialise old-state variables to prevent "stuck" graphs.
diff --git a/src/modules_comp.cpp b/src/modules_comp.cpp
index 15f96a8..c42a054 100644
--- a/src/modules_comp.cpp
+++ b/src/modules_comp.cpp
@@ -1277,6 +1277,11 @@ sidechaingate_audio_module::sidechaingate_audio_module()
is_active = false;
srate = 0;
last_generation = 0;
+
+ f1_freq_old = f2_freq_old = f1_level_old = f2_level_old = 0;
+ f1_freq_old1 = f2_freq_old1 = f1_level_old1 = f2_level_old1 = 0;
+ sc_mode_old = sc_mode_old1 = WIDEBAND; // doesn't matter as long as it's sane
+
}
void sidechaingate_audio_module::activate()
@@ -1889,6 +1894,17 @@ expander_audio_module::expander_audio_module()
is_active = false;
srate = 0;
last_generation = 0;
+
+ old_range = 0.f;
+ old_threshold = 0.f;
+ old_ratio = 0.f;
+ old_knee = 0.f;
+ old_makeup = 0.f;
+ old_detection = 0.f;
+ old_bypass = 0.f;
+ old_mute = 0.f;
+ old_trigger = 0.f;
+ old_stereo_link = 0.f;
}
void expander_audio_module::activate()
--
calf audio plugins packaging
More information about the pkg-multimedia-commits
mailing list