diff Source/FFTW.h @ 1:e86e9c111b29

Updates stuff that potentially fixes the memory leak and also makes it work on Windows and Linux (Need to test). Still have to fix fftw include for linux in Jucer.
author David Ronan <d.m.ronan@qmul.ac.uk>
date Thu, 09 Jul 2015 15:01:32 +0100
parents 25bf17994ef1
children 005e311b5e62
line wrap: on
line diff
--- a/Source/FFTW.h	Thu Jul 09 01:12:16 2015 +0100
+++ b/Source/FFTW.h	Thu Jul 09 15:01:32 2015 +0100
@@ -2,11 +2,11 @@
 /**
  \author André Bergner
  \date   Feb/2013
- 
+
  \class FFTW
- 
+
  Encapsulates the FFT of lib-fftw
- 
+
  (c) Copyright NATIVE INSTRUMENTS, Berlin, Germany
  ALL RIGHTS RESERVED
  */
@@ -15,9 +15,10 @@
 #pragma once
 
 #include "fftw3.h"
-#include <vector>
-#include <windows.h>
-#include <string>
+#include <vector>
+#include <stdio.h>
+//#include <windows.h>
+#include <string.h>
 //#include <itl/dsp/SimdTools.h>
 
 
@@ -29,7 +30,7 @@
    fftwf_plan  m_plan;
   unsigned m_iFFTSize;
 
-  FFTW(); 
+  FFTW();
   FFTW( unsigned fftLength )
   {
 	m_iFFTSize = fftLength;
@@ -71,7 +72,7 @@
 
 	//Multiply results by 2 to match the iOS output
 	for(size_t i = 0; i < m_iFFTSize; i++)
-	{		
+	{
 		realPart[i] *= 2.f;
 		imagPart[i] *= 2.f;
 	}