summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDamien Zammit <damien@zamaudio.com>2015-05-12 00:19:26 +1000
committerDamien Zammit <damien@zamaudio.com>2015-05-12 00:19:26 +1000
commit22dc507d7cc2935ccd769afd5753fa8d05c63d6b (patch)
tree2560b5da860bd3bbda9d5db7674e9c682f9d7c6c
parentc4fe3ff6b0406efa65c9241f147c867745ae03b5 (diff)
Fixed init bug with ZamChild670
Signed-off-by: Damien Zammit <damien@zamaudio.com>
-rw-r--r--plugins/ZamChild670/DistrhoPluginInfo.h2
-rw-r--r--plugins/ZamChild670/ZamChild670Plugin.cpp12
2 files changed, 7 insertions, 7 deletions
diff --git a/plugins/ZamChild670/DistrhoPluginInfo.h b/plugins/ZamChild670/DistrhoPluginInfo.h
index 133905b..26deb42 100644
--- a/plugins/ZamChild670/DistrhoPluginInfo.h
+++ b/plugins/ZamChild670/DistrhoPluginInfo.h
@@ -30,7 +30,7 @@
#define DISTRHO_PLUGIN_WANT_PROGRAMS 1
#define DISTRHO_PLUGIN_WANT_STATE 0
#define DISTRHO_PLUGIN_WANT_TIMEPOS 0
-#define DISTRHO_PLUGIN_IS_RT_SAFE 1
+#define DISTRHO_PLUGIN_IS_RT_SAFE 0
#define DISTRHO_PLUGIN_URI "urn:zamaudio:ZamChild670"
diff --git a/plugins/ZamChild670/ZamChild670Plugin.cpp b/plugins/ZamChild670/ZamChild670Plugin.cpp
index dc3f5aa..a8e6a4e 100644
--- a/plugins/ZamChild670/ZamChild670Plugin.cpp
+++ b/plugins/ZamChild670/ZamChild670Plugin.cpp
@@ -25,10 +25,10 @@ ZamChild670Plugin::ZamChild670Plugin()
: Plugin(paramCount, 1, 0) // 1 program, 0 states
{
// set default values
- inputLevel = from_dB(0.0);
- ACThreshold = from_dB(-6.f);
+ inputLevel = from_dB(-16.0);
+ ACThreshold = from_dB(-3.f);
timeConstantSelect = 2;
- DCThreshold = from_dB(-12.f);
+ DCThreshold = from_dB(-6.f);
outputGain = from_dB(0.0);
params = new Wavechild670Parameters(inputLevel,
ACThreshold, timeConstantSelect, DCThreshold,
@@ -162,10 +162,10 @@ void ZamChild670Plugin::d_setProgram(uint32_t index)
return;
/* Default parameter values */
- inputLevel = 0.0;
- ACThreshold = -6.f;
+ inputLevel = -16.0;
+ ACThreshold = -3.f;
timeConstantSelect = 2;
- DCThreshold = -12.f;
+ DCThreshold = -6.f;
outputGain = 0.0;
/* reset filter values */