summaryrefslogtreecommitdiffstats
path: root/src/DabMod.cpp
diff options
context:
space:
mode:
authorMatthias P. Braendli <matthias.braendli@mpb.li>2017-08-17 16:15:54 +0200
committerMatthias P. Braendli <matthias.braendli@mpb.li>2017-08-17 16:15:54 +0200
commit1cfebd56f205f95498079a20bca1a0667be07296 (patch)
treecbf83a18380528af6678e58cf640467ed3eaacff /src/DabMod.cpp
parent84c8d100c682fece37b448f38228260f84c070f2 (diff)
downloaddabmod-1cfebd56f205f95498079a20bca1a0667be07296.tar.gz
dabmod-1cfebd56f205f95498079a20bca1a0667be07296.tar.bz2
dabmod-1cfebd56f205f95498079a20bca1a0667be07296.zip
Simplify DabModulator ctor signature
Diffstat (limited to 'src/DabMod.cpp')
-rw-r--r--src/DabMod.cpp26
1 files changed, 2 insertions, 24 deletions
diff --git a/src/DabMod.cpp b/src/DabMod.cpp
index 7c342a2..15b3be2 100644
--- a/src/DabMod.cpp
+++ b/src/DabMod.cpp
@@ -317,18 +317,7 @@ int launch_modulator(int argc, char* argv[])
}
Flowgraph flowgraph;
- auto modulator = make_shared<DabModulator>(
- ediReader,
- mod_settings.tiiConfig,
- mod_settings.outputRate,
- mod_settings.clockRate,
- mod_settings.dabMode,
- mod_settings.gainMode,
- mod_settings.digitalgain,
- mod_settings.normalise,
- mod_settings.gainmodeVariance,
- mod_settings.filterTapsFilename,
- mod_settings.polyCoefFilename);
+ auto modulator = make_shared<DabModulator>(ediReader, mod_settings);
if (format_converter) {
flowgraph.connect(modulator, format_converter);
@@ -422,18 +411,7 @@ int launch_modulator(int argc, char* argv[])
m.etiReader = &etiReader;
auto input = make_shared<InputMemory>(&m.data);
- auto modulator = make_shared<DabModulator>(
- etiReader,
- mod_settings.tiiConfig,
- mod_settings.outputRate,
- mod_settings.clockRate,
- mod_settings.dabMode,
- mod_settings.gainMode,
- mod_settings.digitalgain,
- mod_settings.normalise,
- mod_settings.gainmodeVariance,
- mod_settings.filterTapsFilename,
- mod_settings.polyCoefFilename);
+ auto modulator = make_shared<DabModulator>(etiReader, mod_settings);
if (format_converter) {
flowgraph.connect(modulator, format_converter);