aboutsummaryrefslogtreecommitdiffstats
path: root/src/DabModulator.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/DabModulator.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/DabModulator.cpp')
-rw-r--r--src/DabModulator.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/DabModulator.cpp b/src/DabModulator.cpp
index 927c7bd..6d22f2d 100644
--- a/src/DabModulator.cpp
+++ b/src/DabModulator.cpp
@@ -60,7 +60,7 @@ DabModulator::DabModulator(
unsigned outputRate, unsigned clockRate,
unsigned dabMode, GainMode gainMode,
float& digGain, float normalise,
- std::string& filterTapsFilename
+ const std::string& filterTapsFilename
) :
ModCodec(ModFormat(1), ModFormat(0)),
myOutputRate(outputRate),
@@ -214,7 +214,7 @@ int DabModulator::process(Buffer* const dataIn, Buffer* dataOut)
myNbSymbols, mySpacing, myNullSize, mySymSize);
shared_ptr<FIRFilter> cifFilter;
- if (myFilterTapsFilename != "") {
+ if (not myFilterTapsFilename.empty()) {
cifFilter = make_shared<FIRFilter>(myFilterTapsFilename);
rcs.enrol(cifFilter.get());
}