使用C在Windows捕获麦克风音频流 [英] Capture microphone audio stream in Windows using C

查看:474
本文介绍了使用C在Windows捕获麦克风音频流的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我期待建立一个莫尔斯德codeR(并最终codeR)的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.

我如何去使用C Windows中的麦克风音频端口读取电压?

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

推荐答案

该simplist的方法是使用 waveIn 的由Win32 API提供功能。

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

您可以阅读记录,并与波形音频接口播放声音的概述,或刚刚潜入 API文档

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

这篇关于使用C在Windows捕获麦克风音频流的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆