diff options
author | Matthias P. Braendli <matthias.braendli@mpb.li> | 2022-02-02 12:41:31 +0100 |
---|---|---|
committer | Matthias P. Braendli <matthias.braendli@mpb.li> | 2022-02-02 12:41:31 +0100 |
commit | d58c5477c159828f01708317e19e94abe6e8c71b (patch) | |
tree | be2fe57bacba473afba397fc09bd759d24c6ae5e /src | |
parent | 8a288cb9013a3ff16050760e718ea78c50f86c19 (diff) | |
download | dabmod-d58c5477c159828f01708317e19e94abe6e8c71b.tar.gz dabmod-d58c5477c159828f01708317e19e94abe6e8c71b.tar.bz2 dabmod-d58c5477c159828f01708317e19e94abe6e8c71b.zip |
Limit FFTW planner to 2s to avoid stalling input
Stalling the input breaks the ZMQ input functionality on raspberry pi. EDI is able to restart the modulator,
which uses cached plans
Diffstat (limited to 'src')
-rw-r--r-- | src/OfdmGenerator.cpp | 1 | ||||
-rw-r--r-- | src/Resampler.cpp | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/src/OfdmGenerator.cpp b/src/OfdmGenerator.cpp index 00b53ad..2e68df0 100644 --- a/src/OfdmGenerator.cpp +++ b/src/OfdmGenerator.cpp @@ -104,6 +104,7 @@ OfdmGenerator::OfdmGenerator(size_t nbSymbols, const int N = mySpacing; // The size of the FFT myFftIn = (FFT_TYPE*)fftwf_malloc(sizeof(FFT_TYPE) * N); myFftOut = (FFT_TYPE*)fftwf_malloc(sizeof(FFT_TYPE) * N); + fftwf_set_timelimit(2); myFftPlan = fftwf_plan_dft_1d(N, myFftIn, myFftOut, FFTW_BACKWARD, FFTW_MEASURE); diff --git a/src/Resampler.cpp b/src/Resampler.cpp index 142a4bb..f2e0eb6 100644 --- a/src/Resampler.cpp +++ b/src/Resampler.cpp @@ -93,6 +93,7 @@ Resampler::Resampler(size_t inputRate, size_t outputRate, size_t resolution) : myFftIn = (FFT_TYPE*)fftwf_malloc(sizeof(FFT_TYPE) * myFftSizeIn); myFront = (FFT_TYPE*)fftwf_malloc(sizeof(FFT_TYPE) * myFftSizeIn); + fftwf_set_timelimit(2); myFftPlan1 = fftwf_plan_dft_1d(myFftSizeIn, myFftIn, myFront, FFTW_FORWARD, FFTW_MEASURE); |