How do I write the audio stream to a memory buffer instead of a file using DirectShow?

Posted by yngvedh on Stack Overflow See other posts from Stack Overflow or by yngvedh
Published on 2010-03-12T13:39:15Z Indexed on 2010/03/22 19:11 UTC
Read the original article Hit count: 193

Filed under:
|

Hi,

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?

I'm following the approach outlined in an article on msdn and are currently using the CLSID_FileWriter object to write the audio to file. This works nicely, but I cannot figure out how to write to a memory buffer.

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)

© Stack Overflow or respective owner

Related posts about directshow

Related posts about c++