From d4a1f755a9e5426187fe6e80eb32c299f81104dd Mon Sep 17 00:00:00 2001 From: "Matthias P. Braendli (think)" Date: Fri, 17 Aug 2012 11:33:02 +0200 Subject: crc-dabmod: remote control for FIRFilter --- src/DabMod.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/DabMod.cpp') diff --git a/src/DabMod.cpp b/src/DabMod.cpp index 83fb210..1de320d 100644 --- a/src/DabMod.cpp +++ b/src/DabMod.cpp @@ -42,6 +42,7 @@ #include #include #include +#include #include #include #include @@ -49,7 +50,6 @@ #include #include #include -#include #ifdef HAVE_NETINET_IN_H # include @@ -174,7 +174,7 @@ int main(int argc, char* argv[]) GainMode gainMode = GAIN_VAR; Buffer data; - const char* filterTapsFilename = NULL; + std::string filterTapsFilename = ""; // Two configuration sources exist: command line and (new) INI file bool use_configuration_cmdline = false; @@ -368,7 +368,7 @@ int main(int argc, char* argv[]) // FIR Filter parameters: if (pt.get("firfilter.enabled", 0) == 1) { try { - filterTapsFilename = pt.get("firfilter.enabled").c_str(); + filterTapsFilename = pt.get("firfilter.filtertapsfile"); } catch (std::exception &e) { std::cerr << "Error: " << e.what() << "\n"; @@ -455,7 +455,7 @@ int main(int argc, char* argv[]) // When using the FIRFilter, increase the modulator offset pipelining delay // by the correct amount - if (filterTapsFilename != NULL) { + if (filterTapsFilename != "") { modconf.delay_calculation_pipeline_stages += FIRFILTER_PIPELINE_DELAY; } @@ -543,7 +543,7 @@ int main(int argc, char* argv[]) flowgraph = new Flowgraph(); data.setLength(6144); input = new InputMemory(&data); - modulator = new DabModulator(modconf, outputRate, clockRate, + modulator = new DabModulator(modconf, rc, outputRate, clockRate, dabMode, gainMode, amplitude, filterTapsFilename); flowgraph->connect(input, modulator); flowgraph->connect(modulator, output); -- cgit v1.2.3