2006-05-25, 06:38 PM
I'm trying to put something together to record audio to MP3 files I'm using the default DirectShow File Writer which connects OK to the LAME Encoder output (viewing the Remote Graph with GraphEdit during a debug session) but I get 0KB files when I run it.
If I save the graph from the application and open it later in GraphEdit, the file writer is always disconnected and I can't manually reconnect (the filters couldn't agree on a connection type error) - not sure how I get it to connect programmatically. If I alter my code to use IPin.QueryAccept I get an HRESULT of 1 which I believe is S_FALSE (all definitions of S_OK I can find are for 0).
So what I'm asking (in my usual concise way ) is - what sort of file sink can I use to record the MP3 output of the LAME encoder?
Cheers,
Brian
If I save the graph from the application and open it later in GraphEdit, the file writer is always disconnected and I can't manually reconnect (the filters couldn't agree on a connection type error) - not sure how I get it to connect programmatically. If I alter my code to use IPin.QueryAccept I get an HRESULT of 1 which I believe is S_FALSE (all definitions of S_OK I can find are for 0).
So what I'm asking (in my usual concise way ) is - what sort of file sink can I use to record the MP3 output of the LAME encoder?
Cheers,
Brian