title: Understanding AudioBuffer to ArrayBuffer conversion
body: <p>I have an AudioBuffer client-side that I'd like to AJAX to a express server.</p>
  
  <p><a href="https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequest/Sending_and_Receiving_Binary_Data" rel="nofollow">This link</a> shows how a XMLHttpRequest can send/receive binary data - ArrayBuffer. </p>
  
  <p>An ArrayBuffer is different to an AudioBuffer (or so I believe) as I decoded an ArrayBuffer to make the AudioBuffer in the first place. This was done using <a href="https://developer.mozilla.org/en-US/docs/Web/API/AudioContext/decodeAudioData" rel="nofollow">decodeAudioData()</a> as part of the Web Audio API.</p>
  
  <p>So my question is, can I convert an AudioBuffer back to an ArrayBuffer?</p>
  
  <p>If this is possible, I'd like to then send the ArrayBuffer to my express server and then forward it on to a S3 bucket as shown in <a href="http://blog.katworksgames.com/2014/01/26/nodejs-deploying-files-to-aws-s3/" rel="nofollow">this example</a>.</p>
  
  <p>In that example, the code PUTs a Buffer in a S3 bucket created via a fs.readFileSync(). I assume the difference between a Buffer and ArrayBuffer wont be an issue with S3 :S</p>