From f27d07c1de84b65634db1d8fc5dcee6e7fdecadb Mon Sep 17 00:00:00 2001 From: "Matthias P. Braendli" Date: Sun, 31 Jan 2016 23:00:50 +0100 Subject: FIRFilter, use vector to save filter taps --- src/FIRFilter.h | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'src/FIRFilter.h') diff --git a/src/FIRFilter.h b/src/FIRFilter.h index af6cc5e..2dd7354 100644 --- a/src/FIRFilter.h +++ b/src/FIRFilter.h @@ -38,7 +38,7 @@ #include #include - +#include #include #include #include @@ -60,8 +60,7 @@ struct FIRFilterWorkerData { * the taps are being modified */ mutable boost::mutex taps_mutex; - float* taps; - int n_taps; + std::vector taps; }; class FIRFilterWorker { @@ -119,8 +118,6 @@ protected: void load_filter_taps(std::string tapsFile); std::string& myTapsFile; - int myNtaps; - float* myFilter; FIRFilterWorker worker; int number_of_runs; -- cgit v1.2.3