summaryrefslogtreecommitdiffstats
path: root/src/DabModulator.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/DabModulator.h
parentde9777f27dbbe350494ba956ac5691a7a87cb892 (diff)
downloaddabmod-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.h10
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;