diff options
author | andreas128 <Andreas> | 2017-08-24 19:16:33 +0200 |
---|---|---|
committer | andreas128 <Andreas> | 2017-08-24 19:16:33 +0200 |
commit | 28462b9d8bb08609810ea9a9882c5fa9205b8b80 (patch) | |
tree | 8bf70862be54639cc7acfbb09e600b6877cdeab4 /src/MemlessPoly.h | |
parent | 944df89d7a6253b9077eec1655449e74b16f1418 (diff) | |
download | dabmod-28462b9d8bb08609810ea9a9882c5fa9205b8b80.tar.gz dabmod-28462b9d8bb08609810ea9a9882c5fa9205b8b80.tar.bz2 dabmod-28462b9d8bb08609810ea9a9882c5fa9205b8b80.zip |
Add dpd for phase correction
Diffstat (limited to 'src/MemlessPoly.h')
-rw-r--r-- | src/MemlessPoly.h | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/src/MemlessPoly.h b/src/MemlessPoly.h index 49b97e1..536b054 100644 --- a/src/MemlessPoly.h +++ b/src/MemlessPoly.h @@ -52,7 +52,7 @@ typedef std::complex<float> complexf; class MemlessPoly : public PipelinedModCodec, public RemoteControllable { public: - MemlessPoly(const std::string& coefs_file, unsigned int num_threads); + MemlessPoly(const std::string& coefs_am_file, const std::string& coefs_pm_file, unsigned int num_threads); virtual const char* name() { return "MemlessPoly"; } @@ -65,11 +65,16 @@ public: private: int internal_process(Buffer* const dataIn, Buffer* dataOut); - void load_coefficients(const std::string &coefFile); + void load_coefficients_am(const std::string &coefFile_am); + void load_coefficients_pm(const std::string &coefFile_pm); unsigned int m_num_threads; - std::vector<float> m_coefs; - std::string m_coefs_file; - mutable std::mutex m_coefs_mutex; + std::vector<float> m_coefs_am; + std::string m_coefs_am_file; + mutable std::mutex m_coefs_am_mutex; + + std::vector<float> m_coefs_pm; + std::string m_coefs_pm_file; + mutable std::mutex m_coefs_pm_mutex; }; |