ref: 7100895117717f9721a73937fa3871d41ea82a2e
parent: 986131d13a247a071d4450fd0411aa43a9e67141
author: Eduard Müller <mueller.eduard@googlemail.com>
date: Sat Jul 29 18:11:52 EDT 2017
Revert ooura reverse fft scaling changes ... and adjusted new Intel IPP fft impls scaling accordingly as well
--- a/src/spectral/fft.c
+++ b/src/spectral/fft.c
@@ -449,16 +449,16 @@
// apply fft
ippsFFTInv_CCSToR_64f((const Ipp64f *)s->complexOut, output->data, s->fftSpec, s->memBuffer);
// apply scaling
- ippsMulC_64f(output->data, 1.0 / s->winsize, output->data, s->fft_size);
+ ippsMulC_64f(output->data, 2.0 / s->winsize, output->data, s->fft_size);
#else
// apply fft
ippsFFTInv_CCSToR_32f((const Ipp32f *)s->complexOut, output->data, s->fftSpec, s->memBuffer);
// apply scaling
- ippsMulC_32f(output->data, 1.0f / s->winsize, output->data, s->fft_size);
+ ippsMulC_32f(output->data, 2.0f / s->winsize, output->data, s->fft_size);
#endif /* HAVE_AUBIO_DOUBLE */
#else // using OOURA
- smpl_t scale = 1.0 / s->winsize;
+ smpl_t scale = 2.0 / s->winsize;
s->out[0] = compspec->data[0];
s->out[1] = compspec->data[s->winsize / 2];
for (i = 1; i < s->fft_size - 1; i++) {