title: Record to a MemoryStream using NAudio
body: <p>I'm trying to use <code>NAudio</code> to record from the micrphone and save tthat data to a MemoryStream. There doesn't seem to be an obvious way and everytime I try to read from my <code>BufferedWaveProvider</code>, the recording no longer plays when using <code>WaveOut.Play</code>. It recording plays fine if I remove my read attempt. Is there a way to record to a MemoryStream?</p>
  
  <p>This is how I've tried to convert it to a MemoryStream:</p>
  
  <pre><code>Byte[] stream = new byte[bwp.BufferedBytes]; 
  bwp.Read(stream, 0, bwp.BufferedBytes);
  wo.Play(); //plays fine only if I comment out the Read line above
  MemoryStream ms = new MemoryStream(stream);
  </code></pre>