diff options
author | Matthias P. Braendli <matthias.braendli@mpb.li> | 2018-08-07 11:29:47 +0200 |
---|---|---|
committer | Matthias P. Braendli <matthias.braendli@mpb.li> | 2018-08-07 11:29:47 +0200 |
commit | b6e9577aaed919975f32ee1a5a9821668089f2db (patch) | |
tree | 18d3c0ebdc5db92a7caa5931c8171787932f333c /src/GainControl.h | |
parent | e68fa7c6cb9a718ec16cf849e5885e1ca9b3cf3d (diff) | |
download | dabmod-b6e9577aaed919975f32ee1a5a9821668089f2db.tar.gz dabmod-b6e9577aaed919975f32ee1a5a9821668089f2db.tar.bz2 dabmod-b6e9577aaed919975f32ee1a5a9821668089f2db.zip |
Keep RC-modified settings across modulator restarts
Diffstat (limited to 'src/GainControl.h')
-rw-r--r-- | src/GainControl.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/GainControl.h b/src/GainControl.h index b4579cd..e8965e9 100644 --- a/src/GainControl.h +++ b/src/GainControl.h @@ -51,10 +51,10 @@ class GainControl : public PipelinedModCodec, public RemoteControllable { public: GainControl(size_t framesize, - GainMode gainMode, - float digGain, + GainMode& gainMode, + float& digGain, float normalise, - float varVariance); + float& varVariance); virtual ~GainControl(); GainControl(const GainControl&) = delete; @@ -80,8 +80,8 @@ class GainControl : public PipelinedModCodec, public RemoteControllable float m_normalise; // The following variables are accessed from the RC thread - float m_var_variance_rc; - GainMode m_gainmode; + float& m_var_variance_rc; + GainMode& m_gainmode; mutable std::mutex m_mutex; #ifdef __SSE__ |