SFML community forums
Help => Audio => Topic started 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.
-
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.
-
Thanks for the reply. I'm trying to come up with a method to convert data into FFTW's format.