从麦克风捕获 C++ 中的音频

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/20583770/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-27 23:13:03  来源:igfitidea点击:

Capture audio in C++ from a microphone

c++windowsaudiorecord

提问by Telo Pena Barreiro

I want doing a program to capture and process audio from a mic. I search in Internet but is so confuse. Do you know what class and functions i have use to capture audio in c++? If you give me some samples i will thank you.

我想做一个程序来捕获和处理来自麦克风的音频。我在互联网上搜索但很混乱。你知道我用什么类和函数来捕获 C++ 中的音频吗?如果你给我一些样品,我会感谢你。

I use windows 7 and visual studio 2012

我使用 Windows 7 和 Visual Studio 2012

采纳答案by Bernd Elkemann

There are multiple options, at first you have the choice to use a larger framework or the Winapi directly. If you choose the latter then have a look at this tutorial, it shows it better than I could.

有多种选择,首先您可以选择使用更大的框架或直接使用 Winapi。如果您选择后者,请查看本教程,它比我能更好地展示它。