Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: FFT on audio samples  (Read 3202 times)

0 Members and 1 Guest are viewing this topic.

da_coolest

  • Newbie
  • *
  • Posts: 19
    • View Profile
FFT on audio samples
« 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.

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
Re: FFT on audio samples
« Reply #1 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.
Laurent Gomila - SFML developer

da_coolest

  • Newbie
  • *
  • Posts: 19
    • View Profile
Re: FFT on audio samples
« Reply #2 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.