Your best bet, in my opinion, would be to use Apple's FFT code. The Accelerate framework, which includes the vecLib framework, has architecture-independent API for various functions that you'll need, not just FFT. They're written to use vector code so they run really fast on Altivec (PowerPC) or SSE (Intel). Apple will be improving these frameworks as new processors come out, so your code will go further.
On Jan 3, 2008, at 06:37, Daniele Barchiesi wrote:
I am developing an Audio Unit and I need to use the fourier transorm for some DSP. The open-source FFTW3 seemed to me a good choice, but I'm having some troubles with it.
The first time that I installed it, I didnt' know that I had to specify my system architecture (I'm working with a macbook pro, so it is i386) during the configure step. When I wrote a simple test program, the compiler returned no errors, but the buffer that had to contain the fourier transform of a test signal remained empty.
So, I decided to install again cleaning all the old files and using the configure options described in the mentioned thread.
Now I can't even link properly the libraries with my code (I tried with the universal binary one generated by the command -lipo and the one specific for my architecture libfftw3f-i386.a).
In addition, when I try to jump to the definition of an object belonging to a type defined in a fftw3 header, XCode crashes. It crashes also when I access directly the fftw3.h header.
Does anyone have some hints?
Thank you.
Daniele.