diff options
author | Matthias P. Braendli <matthias.braendli@mpb.li> | 2016-01-31 23:00:50 +0100 |
---|---|---|
committer | Matthias P. Braendli <matthias.braendli@mpb.li> | 2016-01-31 23:00:50 +0100 |
commit | f27d07c1de84b65634db1d8fc5dcee6e7fdecadb (patch) | |
tree | 7d3ccab253b33a5bdff0190e90246ff84910a525 /src/FIRFilter.h | |
parent | 5ac4621df043666836107e0e0aaa3df709fb866e (diff) | |
download | dabmod-f27d07c1de84b65634db1d8fc5dcee6e7fdecadb.tar.gz dabmod-f27d07c1de84b65634db1d8fc5dcee6e7fdecadb.tar.bz2 dabmod-f27d07c1de84b65634db1d8fc5dcee6e7fdecadb.zip |
FIRFilter, use vector to save filter taps
Diffstat (limited to 'src/FIRFilter.h')
-rw-r--r-- | src/FIRFilter.h | 7 |
1 files changed, 2 insertions, 5 deletions
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 <sys/types.h> #include <complex> - +#include <vector> #include <time.h> #include <cstdio> #include <string> @@ -60,8 +60,7 @@ struct FIRFilterWorkerData { * the taps are being modified */ mutable boost::mutex taps_mutex; - float* taps; - int n_taps; + std::vector<float> 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; |