标签: c windows audio microphone
我正在寻找在C中构建莫尔斯解码器(最终是编码器)。我想使用音频端口作为输入,并在端口上对输入电压进行采样。
如何使用C?
答案 0 :(得分:8)
最简单的方法是使用Win32 API提供的waveIn函数。
您可以阅读Recording and Playing Sound with the Waveform Audio Interface了解概述,或者直接浏览API documentation。