使用C在Windows中捕获麦克风音频流

时间:2009-12-13 16:56:05

标签: c windows audio microphone

我正在寻找在C中构建莫尔斯解码器(最终是编码器)。我想使用音频端口作为输入,并在端口上对输入电压进行采样。

如何使用C?

读取Windows中麦克风音频端口的电压

1 个答案:

答案 0 :(得分:8)

最简单的方法是使用Win32 API提供的waveIn函数。

您可以阅读Recording and Playing Sound with the Waveform Audio Interface了解概述,或者直接浏览API documentation

相关问题