Capture microphone like Sound Recorder

J

Jason Barnett

I'm searching for a way to capture audio data from a microphone, without
requiring products such as DirectX or third-party tools. I imagine that
Windows already has build-in support, because the Sound Recorder application
can do it. Is there a set of Windows API functions that I must use. I don't
mind encapsulating unmanaged code into an assembly to accomplish the task.
My core requirement is getting it to run on the most basic install of Windows
as possible (Windows 2000 or higher).

Any help is appreciated.
 
J

Jason Barnett

Thanks! I appreciate it.

I'm avoiding DirectX because some of the systems supported will not have
DirectX installed. Installing DirectX, or registering any components, is not
an option either. Basically, the application must remain non-intrusive.

Peter Duniho said:
I'm searching for a way to capture audio data from a microphone, without
requiring products such as DirectX or third-party tools. I imagine that
Windows already has build-in support, because the Sound Recorder
application
can do it. Is there a set of Windows API functions that I must use.
[...]

The WinMM/MCI API is what was used before DirectSound. AFAIK, there is no
specific support in .NET for that component, at least not on the recording
side of things.

I would guess that DirectSound via interop is really the most practical
way to do it in .NET. DirectX is already built on COM, which as near as I
can tell is one of the most convenient ways to get interop to work in .NET.

Pete
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top