summaryrefslogtreecommitdiffstats
path: root/src/GainControl.h
diff options
context:
space:
mode:
authorMatthias P. Braendli <matthias.braendli@mpb.li>2015-09-18 11:29:57 +0200
committerMatthias P. Braendli <matthias.braendli@mpb.li>2015-09-18 11:29:57 +0200
commit8f1d668ddad1bd2c44932b93853282b4eec9eba4 (patch)
treec43f5ea36b6b25b142e866b631e482d1c911aabd /src/GainControl.h
parentde9777f27dbbe350494ba956ac5691a7a87cb892 (diff)
downloaddabmod-8f1d668ddad1bd2c44932b93853282b4eec9eba4.tar.gz
dabmod-8f1d668ddad1bd2c44932b93853282b4eec9eba4.tar.bz2
dabmod-8f1d668ddad1bd2c44932b93853282b4eec9eba4.zip
Keep digital gain across modulator restarts
Diffstat (limited to 'src/GainControl.h')
-rw-r--r--src/GainControl.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/GainControl.h b/src/GainControl.h
index 00379b8..3340215 100644
--- a/src/GainControl.h
+++ b/src/GainControl.h
@@ -51,9 +51,9 @@ class GainControl : public ModCodec, public RemoteControllable
{
public:
GainControl(size_t framesize,
- GainMode mode = GAIN_VAR,
- float digGain = 1.0f,
- float normalise = 1.0f);
+ GainMode mode,
+ float& digGain,
+ float normalise);
virtual ~GainControl();
GainControl(const GainControl&);
@@ -72,7 +72,7 @@ class GainControl : public ModCodec, public RemoteControllable
protected:
size_t d_frameSize;
- float d_digGain;
+ float& d_digGain;
float d_normalise;
#ifdef __SSE__
__m128 (*computeGain)(const __m128* in, size_t sizeIn);