diff options
author | andreas128 <Andreas> | 2017-08-17 16:28:35 +0200 |
---|---|---|
committer | andreas128 <Andreas> | 2017-08-17 16:28:35 +0200 |
commit | a8b1aa0b60a1f5bf884069091d0f43b12c521bb8 (patch) | |
tree | c1a670f026215797f97c1acc7298c5ad7e05f85e /src/DabModulator.h | |
parent | 4fe5b4cacad22c84110061cb1cce4c0cf29b79fa (diff) | |
parent | fe62dff97924c045affe10da2e896e29e10e6aed (diff) | |
download | dabmod-a8b1aa0b60a1f5bf884069091d0f43b12c521bb8.tar.gz dabmod-a8b1aa0b60a1f5bf884069091d0f43b12c521bb8.tar.bz2 dabmod-a8b1aa0b60a1f5bf884069091d0f43b12c521bb8.zip |
Merge branch 'next_memless' of github.com:Opendigitalradio/ODR-DabMod into next_memless
Diffstat (limited to 'src/DabModulator.h')
-rw-r--r-- | src/DabModulator.h | 30 |
1 files changed, 6 insertions, 24 deletions
diff --git a/src/DabModulator.h b/src/DabModulator.h index 0c691dd..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,18 +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); - 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"; } @@ -70,19 +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; - tii_config_t& myTiiConfig; + std::shared_ptr<Flowgraph> myFlowgraph; size_t myNbSymbols; size_t myNbCarriers; |