summaryrefslogtreecommitdiffstats
path: root/src/GainControl.cpp
diff options
context:
space:
mode:
authorMatthias P. Braendli <matthias.braendli@mpb.li>2017-03-17 14:01:05 +0100
committerMatthias P. Braendli <matthias.braendli@mpb.li>2017-03-17 14:01:05 +0100
commit987a31954ea574e04c2e79fe3765448c1b607e49 (patch)
treea8ad6e6dc7fe5a210fb73be989e3b4c6bdf8192d /src/GainControl.cpp
parent8cde8201e657c024163e64a3df62ff91f2b2513f (diff)
downloaddabmod-987a31954ea574e04c2e79fe3765448c1b607e49.tar.gz
dabmod-987a31954ea574e04c2e79fe3765448c1b607e49.tar.bz2
dabmod-987a31954ea574e04c2e79fe3765448c1b607e49.zip
Add gainmode var variance to config file
Diffstat (limited to 'src/GainControl.cpp')
-rw-r--r--src/GainControl.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/GainControl.cpp b/src/GainControl.cpp
index 81ae06e..9eb1678 100644
--- a/src/GainControl.cpp
+++ b/src/GainControl.cpp
@@ -48,7 +48,8 @@ static float var_variance;
GainControl::GainControl(size_t framesize,
GainMode mode,
float& digGain,
- float normalise) :
+ float normalise,
+ float varVariance) :
PipelinedModCodec(),
RemoteControllable("gain"),
#ifdef __SSE__
@@ -58,7 +59,7 @@ GainControl::GainControl(size_t framesize,
#endif
m_digGain(digGain),
m_normalise(normalise),
- m_var_variance_rc(4.0f),
+ m_var_variance_rc(varVariance),
m_gainmode(mode),
m_mutex()
{