diff options
author | Matthias P. Braendli <matthias.braendli@mpb.li> | 2017-08-17 16:19:58 +0200 |
---|---|---|
committer | Matthias P. Braendli <matthias.braendli@mpb.li> | 2017-08-17 16:19:58 +0200 |
commit | fe62dff97924c045affe10da2e896e29e10e6aed (patch) | |
tree | 58a6efaca999f0004377e6272ea010880579d203 /src/DabModulator.h | |
parent | 6a9af4b8ff4f73e01ccb3bd07c0a971ef503c73d (diff) | |
parent | 1cfebd56f205f95498079a20bca1a0667be07296 (diff) | |
download | dabmod-fe62dff97924c045affe10da2e896e29e10e6aed.tar.gz dabmod-fe62dff97924c045affe10da2e896e29e10e6aed.tar.bz2 dabmod-fe62dff97924c045affe10da2e896e29e10e6aed.zip |
Merge branch 'next' into next_memless
Diffstat (limited to 'src/DabModulator.h')
-rw-r--r-- | src/DabModulator.h | 33 |
1 files changed, 6 insertions, 27 deletions
diff --git a/src/DabModulator.h b/src/DabModulator.h index 56a6f91..6878853 100644 --- a/src/DabModulator.h +++ b/src/DabModulator.h @@ -36,6 +36,7 @@ #include <memory> #include "ModPlugin.h" +#include "ConfigParser.h" #include "EtiReader.h" #include "Flowgraph.h" #include "GainControl.h" @@ -48,20 +49,8 @@ class DabModulator : public ModInput { public: - DabModulator( - EtiSource& etiSource, - tii_config_t& tiiConfig, - unsigned outputRate, unsigned clockRate, - unsigned dabMode, GainMode gainMode, - float& digGain, float normalise, - float gainmodeVariance, - const std::string& filterTapsFilename, - const std::string& polyCoefFilename, - unsigned int polyNumThreads); - - DabModulator(const DabModulator& other) = delete; - DabModulator& operator=(const DabModulator& other) = delete; - virtual ~DabModulator(); + DabModulator(EtiSource& etiSource, + const mod_settings_t& settings); int process(Buffer* dataOut); const char* name() { return "DabModulator"; } @@ -72,20 +61,10 @@ public: protected: void setMode(unsigned mode); - unsigned myOutputRate; - unsigned myClockRate; - unsigned myDabMode; - GainMode myGainMode; - float& myDigGain; - float myNormalise; - float myGainmodeVariance; + const mod_settings_t& m_settings; + EtiSource& myEtiSource; - Flowgraph* myFlowgraph; - OutputMemory* myOutput; - std::string myFilterTapsFilename; - std::string myPolyCoefFilename; - unsigned int myPolyNumThreads; - tii_config_t& myTiiConfig; + std::shared_ptr<Flowgraph> myFlowgraph; size_t myNbSymbols; size_t myNbCarriers; |