diff options
author | Matthias P. Braendli <matthias.braendli@mpb.li> | 2017-08-17 15:25:47 +0200 |
---|---|---|
committer | Matthias P. Braendli <matthias.braendli@mpb.li> | 2017-08-17 15:33:19 +0200 |
commit | a82f72eb04d4b5766f12d94febdf2f989ca7210a (patch) | |
tree | fc43378dbb7ae7c2e16e81814fdbe9bfcff38a1f /src/DabModulator.cpp | |
parent | 15651ab0020ba594bff02491b3d2b6472f5e4fda (diff) | |
download | dabmod-a82f72eb04d4b5766f12d94febdf2f989ca7210a.tar.gz dabmod-a82f72eb04d4b5766f12d94febdf2f989ca7210a.tar.bz2 dabmod-a82f72eb04d4b5766f12d94febdf2f989ca7210a.zip |
Add number of threads setting for MemlessPoly
Diffstat (limited to 'src/DabModulator.cpp')
-rw-r--r-- | src/DabModulator.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/DabModulator.cpp b/src/DabModulator.cpp index 5282a2d..ccc2085 100644 --- a/src/DabModulator.cpp +++ b/src/DabModulator.cpp @@ -63,7 +63,8 @@ DabModulator::DabModulator( float& digGain, float normalise, float gainmodeVariance, const std::string& filterTapsFilename, - const std::string& polyCoefFilename + const std::string& polyCoefFilename, + unsigned int polyNumThreads ) : ModInput(), myOutputRate(outputRate), @@ -77,6 +78,7 @@ DabModulator::DabModulator( myFlowgraph(NULL), myFilterTapsFilename(filterTapsFilename), myPolyCoefFilename(polyCoefFilename), + myPolyNumThreads(polyNumThreads), myTiiConfig(tiiConfig) { PDEBUG("DabModulator::DabModulator(%u, %u, %u, %zu) @ %p\n", @@ -222,7 +224,8 @@ int DabModulator::process(Buffer* dataOut) shared_ptr<MemlessPoly> cifPoly; if (not myPolyCoefFilename.empty()) { - cifPoly = make_shared<MemlessPoly>(myPolyCoefFilename); + cifPoly = make_shared<MemlessPoly>( + myPolyCoefFilename, myPolyNumThreads); rcs.enrol(cifPoly.get()); } |