Capture audio to WAV file
  Home FAQ Contact Sign in
microsoft.public.win32.programmer.directx.audio only
 
Advanced search
POPULAR GROUPS

more...

microsoft ... directx.audio Profile…
 Up
Capture audio to WAV file         


Author: Bob
Date: Sep 6, 2008 00:07

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.

Anything?
4 Comments
Re: Capture audio to WAV file         


Date: Sep 6, 2008 12:23

"Bob" nospam.com> wrote in message
news:ota4c4tst3fq0nuqudeiinnvkdqqjrgahe@4ax.com...
> 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
is a sample filter that does:

WavDest Filter Sample
http://msdn.microsoft.com/en-us/library/ms788110(VS.85).aspx

Mark

--
Mark Salsbery
Microsoft MVP - Visual C++
>
> Anything?
no comments
Re: Capture audio to WAV file         


Author: Bob
Date: Sep 6, 2008 16:58

On Sat, 6 Sep 2008 12:23:09 -0700, "Mark Salsbery [MVP]"
wrote:
>"Bob" nospam.com> wrote in message
>news:ota4c4tst3fq0nuqudeiinnvkdqqjrgahe@4ax.com...
>> 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
>is a sample filter that does:
>
>WavDest Filter Sample
>http://msdn.microsoft.com/en-us/library/ms788110(VS.85).aspx
Show full article (1.41Kb)
no comments
Re: Capture audio to WAV file         


Date: Sep 8, 2008 08:26

On Sat, 06 Sep 2008 03:07:59 -0400, Bob wrote:
> I'd like to find samples of code for capturing audio (from mic or
> input channel) to a .WAV file.
...

Please do not crosspost without checking the groups you are posting to. A
quick check will show:

microsoft.public.multimedia.directx.dshow.programming

has been inactive for years.

See: http://tmhare.mvps.org/help.htm#cp

And the link below.

Follow up set to:

microsoft.public.win32.programmer.directx.audio

--
Please read this before replying:
1. Dshow & posting help: http://tmhare.mvps.org/help.htm
2. Trim & respond inline (please don't top post or snip everything)
3. Benefit others: follow up if you are helped or you found a solution
no comments
Re: Capture audio to WAV file         


Date: Sep 8, 2008 08:29

On Sat, 06 Sep 2008 19:58:20 -0400, Bob wrote:
> I was hoping that there was something built in, but if not, is there a
> way to solve the problem with WaveDest?

What is the problem with re-creating the filter graph from scratch each
time you need one? That is a normal way to do things with dshow.

--
Please read this before replying:
1. Dshow & posting help: http://tmhare.mvps.org/help.htm
2. Trim & respond inline (please don't top post or snip everything)
3. Benefit others: follow up if you are helped or you found a solution
no comments