title: How do I write the audio stream to a memory buffer instead of a file using DirectShow?
body: <p>I have made a sample application which constructs a filter graph to capture audio from the microphone and stream it to a file. Is there any filter which allows me to stream to a memory buffer instead?</p>
  
  <p>I'm following the approach outlined in an article on <a href="http://msdn.microsoft.com/en-us/library/dd375005(v=VS.85).aspx" rel="nofollow noreferrer">msdn</a> and are currently using the <code>CLSID_FileWriter </code> object to write the audio to file. This works nicely, but I cannot figure out how to write to a memory buffer.</p>
  
  <p>Is there such a memory sink filter or do I have to create it myself? (I would prefer one which is bundled with windows XP)</p>