aboutsummaryrefslogtreecommitdiffstats
path: root/src/DabMod.cpp
diff options
context:
space:
mode:
authorMatthias P. Braendli <matthias.braendli@mpb.li>2016-12-11 16:35:39 +0100
committerMatthias P. Braendli <matthias.braendli@mpb.li>2016-12-11 16:35:39 +0100
commitd0c670ad0d177a81c5aa2395c8155d47c719cb5f (patch)
treee0ed4cf4665d9266cf9522563e631db4a9800d01 /src/DabMod.cpp
parent9ea7df6030842be17a8ea52e7e659871b33a49bf (diff)
downloaddabmod-d0c670ad0d177a81c5aa2395c8155d47c719cb5f.tar.gz
dabmod-d0c670ad0d177a81c5aa2395c8155d47c719cb5f.tar.bz2
dabmod-d0c670ad0d177a81c5aa2395c8155d47c719cb5f.zip
Include default firfilter taps in binary and enable by default
Diffstat (limited to 'src/DabMod.cpp')
-rw-r--r--src/DabMod.cpp11
1 files changed, 2 insertions, 9 deletions
diff --git a/src/DabMod.cpp b/src/DabMod.cpp
index 194c441..fc28218 100644
--- a/src/DabMod.cpp
+++ b/src/DabMod.cpp
@@ -423,14 +423,7 @@ int launch_modulator(int argc, char* argv[])
// FIR Filter parameters:
if (pt.get("firfilter.enabled", 0) == 1) {
- try {
- filterTapsFilename = pt.get<std::string>("firfilter.filtertapsfile");
- }
- catch (std::exception &e) {
- std::cerr << "Error: " << e.what() << "\n";
- std::cerr << " Configuration enables firfilter, but does not specify filter taps file\n";
- throw std::runtime_error("Configuration error");
- }
+ filterTapsFilename = pt.get<std::string>("firfilter.filtertapsfile", "default");
}
// Output options
@@ -609,7 +602,7 @@ int launch_modulator(int argc, char* argv[])
// When using the FIRFilter, increase the modulator offset pipelining delay
// by the correct amount
- if (filterTapsFilename != "") {
+ if (not filterTapsFilename.empty()) {
tist_delay_stages += FIRFILTER_PIPELINE_DELAY;
}