views:

327

answers:

1

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?

+4  A: 

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.

Frank Krueger
Thanks -- exactly what I was looking for.
Mark E