diff options
author | Matthias P. Braendli <matthias.braendli@mpb.li> | 2015-09-18 11:29:57 +0200 |
---|---|---|
committer | Matthias P. Braendli <matthias.braendli@mpb.li> | 2015-09-18 11:29:57 +0200 |
commit | 8f1d668ddad1bd2c44932b93853282b4eec9eba4 (patch) | |
tree | c43f5ea36b6b25b142e866b631e482d1c911aabd /src/DabModulator.h | |
parent | de9777f27dbbe350494ba956ac5691a7a87cb892 (diff) | |
download | dabmod-8f1d668ddad1bd2c44932b93853282b4eec9eba4.tar.gz dabmod-8f1d668ddad1bd2c44932b93853282b4eec9eba4.tar.bz2 dabmod-8f1d668ddad1bd2c44932b93853282b4eec9eba4.zip |
Keep digital gain across modulator restarts
Diffstat (limited to 'src/DabModulator.h')
-rw-r--r-- | src/DabModulator.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/DabModulator.h b/src/DabModulator.h index f212ecf..2552f50 100644 --- a/src/DabModulator.h +++ b/src/DabModulator.h @@ -53,10 +53,10 @@ public: double& tist_offset_s, unsigned tist_delay_stages, RemoteControllers* rcs, const tii_config_t& tiiConfig, - unsigned outputRate = 2048000, unsigned clockRate = 0, - unsigned dabMode = 0, GainMode gainMode = GAIN_VAR, - float digGain = 1.0, float normalise = 1.0, - std::string filterTapsFilename = ""); + unsigned outputRate, unsigned clockRate, + unsigned dabMode, GainMode gainMode, + float& digGain, float normalise, + std::string filterTapsFilename); DabModulator(const DabModulator& other) = delete; DabModulator& operator=(const DabModulator& other) = delete; virtual ~DabModulator(); @@ -74,7 +74,7 @@ protected: unsigned myClockRate; unsigned myDabMode; GainMode myGainMode; - float myDigGain; + float& myDigGain; float myNormalise; EtiReader myEtiReader; Flowgraph* myFlowgraph; |