Mark Elliot
Mark Elliot

Reputation: 77024

Capture microphone audio stream in Windows using C

I'm looking to build a Morse decoder (and eventually a coder) in C. I'd like to use the audio port as input, and sample the incoming voltage on the port.

How do I go about reading the voltage on a microphone audio port in Windows using C?

Upvotes: 3

Views: 8202

Answers (1)

Frank Krueger
Frank Krueger

Reputation: 70973

The simplist way is to use the waveIn functions provided by the Win32 API.

You can read Recording and Playing Sound with the Waveform Audio Interface for an overview, or just dive into the API documentation.

Upvotes: 7

Related Questions