title: How to extract frequency information from samples from PortAudio using FFTW in C
body: <p>I want to make a program that would record audio data using PortAudio (I have this part done) and then display the frequency information of that recorded audio (for now, I'd like to display the average frequency of each of the group of samples as they come in).</p>
  
  <p>From some research I've done, I know that I need to do an FFT. So I googled for a library to do that, in C, and found FFTW.</p>
  
  <p>However, now I am a little lost. What exactly am I supposed to do with the samples I recorded to extract some frequency information from them? What kind of FFT should I use (I assume I'd need a real data 1D?)?</p>
  
  <p>And once I'd do the FFT, how do I get the frequency information from the data it gives me?</p>
  
  <p>EDIT : I now found also the autocorrelation algorithm. Is it better? Simpler?</p>
  
  <p>Thanks a lot in advance, and sorry, I have absolutely no experience if this. I hope it makes at least a little sense.</p>