title: How to extract data from a WAV file for use in an FFT
body: <p>I'm looking for a way to extract data from a WAV file that will be useful for an FFT algorithm I'm trying to implement. So far what I have are a bunch of hex values for left and right audio channels, but I am a little lost on how to translate this over to time and frequency domains for an FFT.</p>
  
  <p>Here's what I need for example:</p>
  
  <pre><code>3.6 2.6
  2.9 6.3
  5.6 4.0
  4.8 9.1
  3.3 0.4
  5.9 4.8
  5.0 2.6
  4.3 4.1
  </code></pre>
  
  <p>And this is the prototype of the function taking in the data for the FFT:</p>
  
  <pre><code>void fft(int N, double (*x)[2], double (*y)[2])
  </code></pre>
  
  <p>Where N is the number of points for the FFT, x is a pointer to the time-domain samples, y is a pointer to the frequency-domain samples.</p>
  
  <p>Thanks!</p>