SFML community forums

Help => Audio => Topic started by: da_coolest on May 28, 2012, 05:54:00 pm

Title: FFT on audio samples
Post by: da_coolest on May 28, 2012, 05:54:00 pm
Hi, I have loaded samples from a wav file to the memory and received it from SoundBuffer. I want to use FFTW to run FFT on these samples. FFTW takes the input as fftw_complex objects. What type of conversion do I have to do on the sample array to pass it to the FFTW ?

Thanks.
Title: Re: FFT on audio samples
Post by: Laurent on May 28, 2012, 06:38:28 pm
I have no idea, this is rather specific to FFTW.

SFML's samples are 16-bits signed integers, there's nothing complicated. I have no idea why FFTW requires complex numbers.
Title: Re: FFT on audio samples
Post by: da_coolest on May 28, 2012, 08:24:41 pm
Thanks for the reply. I'm trying to come up with a method to convert data into FFTW's format.