如何使用C ++启用Stereo Mix设备作为音频输入设备? [英] How can I enable Stereo Mix device as audio input device using C++?

查看:314
本文介绍了如何使用C ++启用Stereo Mix设备作为音频输入设备?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好!

我将启用立体声混音设备作为音频输入设备来捕捉我的播放音频。

但我无法通过Google搜索找到某些解决方案。

在谷歌上,有许多解决方案使用控制面板>播放设备,但是我将使用C ++以编程方式启用它。

我希望每个人都能帮忙。

Hello!
I am going to enable stereo mix device as audio input device to capture my playback audio.
But I can't find certain solutions from googling.
On google, there are many solutions using Control Panel > Playback devices, but I am gonna enable it programmatically using C++.
I wish everybody's help.

推荐答案

你没有指定哪个操作您正在使用的系统,但您需要下载 Windows驱动程序工具包(WDK) [ ^ ](链接适用于Windows 10)



通过安装WDK命令行工具 DevCon [ ^ ]也将被安装。

You don't specify which operating system you are using, but you need to download the Windows Driver Kit (WDK)[^] (The link is for Windows 10)

By installing the WDK the command line tool DevCon[^] will also be installed.
Quote:

DevCon(Devcon.exe),即设备控制台,是一个命令行工具,显示有关设备的详细信息o n台运行Windows的计算机。您可以使用DevCon来启用,禁用,安装,配置和删除设备。

DevCon (Devcon.exe), the Device Console, is a command-line tool that displays detailed information about devices on computers running Windows. You can use DevCon to enable, disable, install, configure, and remove devices.





源代码 [ ^ ]也可以使用DevCon,这样你就可以看到这个应用程序是如何完成的。



我希望这些信息可以帮助你开始。



The source code[^] for DevCon is available as well, so you can see how things are done in this application.

I hope this info will get you started.


这篇关于如何使用C ++启用Stereo Mix设备作为音频输入设备?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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