title: libsox to convert wav file sample rate etc.
body: <p>EDIT: i want to use libsox to programatically convert a wav file's sample rate, audio format, channels, and etc. </p>
  
  <p>in the libsox man page, there are a bunch of functions I can use but I'm clueless as hell on what to do. Can anyone give me a sort of steps on how to do it? </p>
  
  <p>Help?</p>
  
  <hr>
  
  <p>Can anyone please explain this?</p>
  
  <pre><code>   The  function  sox_write  writes  len samples from buf using the format
     handler specified by ft. Data in buf must be 32-bit signed samples  and
     will  be converted during the write process. The value of len is speci-
     fied in total samples. If its value is not evenly divisable by the num-
     ber of channels, undefined behavior will occur.
  </code></pre>