diff options
| author | micknoise <mickgrierson@gmail.com> | 2016-12-19 23:17:30 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2016-12-19 23:17:30 +0000 |
| commit | de7e1b6c41234d1b7e3601b2aec3104f5f79ead0 (patch) | |
| tree | d3027d5797cab4a406e4e7c4a903b6a786812b18 | |
| parent | 85d3fe3233cee889a9c2593d48ba1dea12d4a7a8 (diff) | |
| parent | 866acfb508888004186c0802db6a80283c6a09ee (diff) | |
Merge pull request #52 from cthom055/master
fixed IFFT on Windows
| -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 |
