Capture microphone audio stream in Windows using C

﹥>﹥吖頭↗ 提交于 2020-01-01 17:08:07

问题


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?


回答1:


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.



来源:https://stackoverflow.com/questions/1897042/capture-microphone-audio-stream-in-windows-using-c

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!