Capture microphone like Sound Recorder

  • Thread starter Thread starter Jason Barnett
  • Start date Start date
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.
 
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
 
Back
Top