aboutsummaryrefslogtreecommitdiffstats
path: root/src/FIRFilter.h
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/FIRFilter.h
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/FIRFilter.h')
-rw-r--r--src/FIRFilter.h11
1 files changed, 4 insertions, 7 deletions
diff --git a/src/FIRFilter.h b/src/FIRFilter.h
index 2dd7354..ceac4cd 100644
--- a/src/FIRFilter.h
+++ b/src/FIRFilter.h
@@ -22,8 +22,7 @@
along with ODR-DabMod. If not, see <http://www.gnu.org/licenses/>.
*/
-#ifndef FIRFILTER_H
-#define FIRFILTER_H
+#pragma once
#ifdef HAVE_CONFIG_H
# include <config.h>
@@ -98,7 +97,7 @@ class FIRFilterWorker {
class FIRFilter : public ModCodec, public RemoteControllable
{
public:
- FIRFilter(std::string& taps_file);
+ FIRFilter(const std::string& taps_file);
virtual ~FIRFilter();
FIRFilter(const FIRFilter&);
FIRFilter& operator=(const FIRFilter&);
@@ -115,14 +114,12 @@ public:
protected:
- void load_filter_taps(std::string tapsFile);
+ void load_filter_taps(const std::string &tapsFile);
- std::string& myTapsFile;
+ std::string myTapsFile;
FIRFilterWorker worker;
int number_of_runs;
struct FIRFilterWorkerData firwd;
};
-#endif //FIRFILTER_H
-