On Sat, 6 Sep 2008 12:23:09 -0700, "Mark Salsbery [MVP]"
Post by Mark Salsbery [MVP] Post by Bob
I'd like to find samples of code for capturing audio (from mic or
input channel) to a .WAV file.
It would be a plus to find this in C#, using the DirectShow.net lib.
DirectShow doesn't come with a filter to write WAV files (AFAIK) but there
WavDest Filter Sample
Thanks, Mark. I checked the WaveDest filter (compiled from the latest
Windows SDK), and I can get it to work. But it's extremely touchy.
When test-patching things in GraphEdt, it will initially connect, but
if the pins are disconnected, it cannot be reconnected. It gives a
message about no compatible formats. I have to delete the WaveDest
filter and reload it. Then it's good for one more connect. Strange,
It also seems to interfere with connection of other filters in a
chain, causing them to issue the same type of message. When WaveDest
is removed, the other filters hook up fine.
Seems like I'd have to account for the strange behavior if I use it in
an app. And it's tough to say what's causing the quirks.
I was hoping that there was something built in, but if not, is there a
way to solve the problem with WaveDest?