diff options
| author | Cameron Thomas <cthom055@gold.ac.uk> | 2016-10-27 10:35:02 +0100 |
|---|---|---|
| committer | Cameron Thomas <cthom055@gold.ac.uk> | 2016-10-27 10:35:02 +0100 |
| commit | 866acfb508888004186c0802db6a80283c6a09ee (patch) | |
| tree | fffc54fbc82b31ecfd3212740c23d2278cf37642 | |
| parent | c0c5b8abdaa8a0e69c1c3f1e7e0a3db041fa8c09 (diff) | |
fixed IFFT on Windows
* fixed bug on line 547-548
* memsets now clear the latter half of the array properly
| -rw-r--r-- | libs/fft.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libs/fft.cpp b/libs/fft.cpp index 85a7aa9..4332d88 100644 --- a/libs/fft.cpp +++ b/libs/fft.cpp @@ -544,8 +544,8 @@ void fft::inversePowerSpectrum(int start, float *finalOut, float *window, float } /* zero negative frequencies */ - memset(in_real+half, half, 0.0); - memset(in_img+half, half, 0.0); + memset(in_real+half, 0, sizeof(float) * half); + memset(in_img+half, 0, sizeof(float) * half); FFT(n, 1, in_real, in_img, out_real, out_img); // second parameter indicates inverse transform |
