aboutsummaryrefslogtreecommitdiffstats
path: root/src/Resampler.cpp
diff options
context:
space:
mode:
authorMatthias P. Braendli <matthias.braendli@mpb.li>2015-10-28 20:47:14 +0100
committerMatthias P. Braendli <matthias.braendli@mpb.li>2015-10-28 20:47:14 +0100
commit393b1462d0ef51acf50abf570b487b46802d093e (patch)
tree046a8ee1100dbff603b6cc996e083408b17663eb /src/Resampler.cpp
parent2f7afa510fbdd29ee8874db970d47646d4c88da2 (diff)
downloaddabmod-393b1462d0ef51acf50abf570b487b46802d093e.tar.gz
dabmod-393b1462d0ef51acf50abf570b487b46802d093e.tar.bz2
dabmod-393b1462d0ef51acf50abf570b487b46802d093e.zip
Fix compilation in KISS FFT with SIMD due to std::complex
Diffstat (limited to 'src/Resampler.cpp')
-rw-r--r--src/Resampler.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/Resampler.cpp b/src/Resampler.cpp
index cda4ff4..4ad6638 100644
--- a/src/Resampler.cpp
+++ b/src/Resampler.cpp
@@ -275,10 +275,10 @@ int Resampler::process(Buffer* const dataIn, Buffer* dataOut)
for (size_t k = 0; k < 4; ++k) {
if (j < sizeOut) {
for (size_t l = 0; l < myFftSizeOut / 2; ++l) {
- cplxOut[j + l].real() = myBufferOut[l].real() + fftDataOut[l].r[k];
- cplxOut[j + l].imag() = myBufferOut[l].imag() + fftDataOut[l].i[k];
- myBufferOut[l].real() = fftDataOut[myFftSizeOut / 2 + l].r[k];
- myBufferOut[l].imag() = fftDataOut[myFftSizeOut / 2 + l].i[k];
+ cplxOut[j + l] = complexf(myBufferOut[l].real() + fftDataOut[l].r[k],
+ myBufferOut[l].imag() + fftDataOut[l].i[k]);
+ myBufferOut[l] = complexf(fftDataOut[myFftSizeOut / 2 + l].r[k],
+ fftDataOut[myFftSizeOut / 2 + l].i[k]);
}
}
j += myFftSizeOut / 2;