diff options
author | Kenneth Mortensen <mortensenit@users.noreply.github.com> | 2015-01-05 16:36:52 +0100 |
---|---|---|
committer | Kenneth Mortensen <mortensenit@users.noreply.github.com> | 2015-01-05 16:36:52 +0100 |
commit | 191817b42ad86a250bbff02895e9646f51531672 (patch) | |
tree | 521d6b1a9a30a657d84c80ca9660c24c4db8ee86 /src/Resampler.h | |
parent | fcc439f1387887110ccbf0e9e6a6d116eba315ac (diff) | |
parent | 94c1f63b6fd07d74f3325274dd19fd6beaf53965 (diff) | |
download | dabmod-191817b42ad86a250bbff02895e9646f51531672.tar.gz dabmod-191817b42ad86a250bbff02895e9646f51531672.tar.bz2 dabmod-191817b42ad86a250bbff02895e9646f51531672.zip |
Merge remote-tracking branch 'upstream/master'
Diffstat (limited to 'src/Resampler.h')
-rw-r--r-- | src/Resampler.h | 22 |
1 files changed, 17 insertions, 5 deletions
diff --git a/src/Resampler.h b/src/Resampler.h index a19b14e..392d0a6 100644 --- a/src/Resampler.h +++ b/src/Resampler.h @@ -1,6 +1,11 @@ /* Copyright (C) 2005, 2006, 2007, 2008, 2009, 2010, 2011 Her Majesty the Queen in Right of Canada (Communications Research Center Canada) + + Copyright (C) 2014 + Matthias P. Braendli, matthias.braendli@mpb.li + + http://opendigitalradio.org */ /* This file is part of ODR-DabMod. @@ -28,12 +33,19 @@ #include "porting.h" #include "ModCodec.h" -#include "kiss_fftsimd.h" +#if USE_FFTW +# include <sys/types.h> +# include <fftw3.h> +# define FFT_TYPE fftwf_complex +# define FFT_PLAN fftwf_plan -#include <sys/types.h> -#include <kiss_fft.h> -#include <tools/kiss_fftr.h> +#else +# include "kiss_fftsimd.h" +# include <sys/types.h> +# include <kiss_fft.h> +# include <tools/kiss_fftr.h> +#endif #include <complex> typedef std::complex<float> complexf; @@ -68,5 +80,5 @@ protected: float myFactor; }; - #endif // RESAMPLER_H + |