aboutsummaryrefslogtreecommitdiffstats
path: root/src/MemlessPoly.h
diff options
context:
space:
mode:
authorMatthias P. Braendli <matthias.braendli@mpb.li>2017-08-17 15:25:47 +0200
committerMatthias P. Braendli <matthias.braendli@mpb.li>2017-08-17 15:33:19 +0200
commita82f72eb04d4b5766f12d94febdf2f989ca7210a (patch)
treefc43378dbb7ae7c2e16e81814fdbe9bfcff38a1f /src/MemlessPoly.h
parent15651ab0020ba594bff02491b3d2b6472f5e4fda (diff)
downloaddabmod-a82f72eb04d4b5766f12d94febdf2f989ca7210a.tar.gz
dabmod-a82f72eb04d4b5766f12d94febdf2f989ca7210a.tar.bz2
dabmod-a82f72eb04d4b5766f12d94febdf2f989ca7210a.zip
Add number of threads setting for MemlessPoly
Diffstat (limited to 'src/MemlessPoly.h')
-rw-r--r--src/MemlessPoly.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/MemlessPoly.h b/src/MemlessPoly.h
index 9fe19d7..b7fd81e 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);
+ MemlessPoly(const std::string& coefs_file, unsigned int num_threads);
virtual const char* name() { return "MemlessPoly"; }
@@ -67,6 +67,7 @@ private:
int internal_process(Buffer* const dataIn, Buffer* dataOut);
void load_coefficients(const std::string &coefFile);
+ unsigned int m_num_threads;
std::vector<complexf> m_coefs;
std::string m_coefs_file;
mutable std::mutex m_coefs_mutex;