在 Windows 7 上以编程方式切换音频设备 [英] Programmatically switch audio devices on Windows 7

查看:26
本文介绍了在 Windows 7 上以编程方式切换音频设备的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在我的 Windows 7 PC 上,我有一套扬声器、一些无线耳机和一个 USB 网络摄像头.这意味着我有两个可能的音频输出设备和两个可能的音频输入设备.

On my Windows 7 PC, I've got a set of speakers, some wireless headphones and a USB web cam. This means that I have two possible audio output devices and 2 possible audio input devices.

我发现自己不得不频繁地在它们之间切换.目前这是一个手动过程:右键单击扬声器图标,选择播放设备"或录音设备"之一,在列表中选择正确的设备(其中也有一些死"的设备)然后点击设置默认值".

I find myself having to switch between them fairly frequently. At the moment this is a manual process: right-click on the speaker icon, choose one of "Playback devices" or "Recording devices", choose the correct device in the list (and there's some "dead" ones in there, too) and then hit "Set Default".

我环顾四周,我能找到的只是编写 SendKeys 脚本以自动执行此操作的人.

I've looked around, and all I can find are people scripting SendKeys to automate this.

这太糟糕了.

有没有办法以编程方式切换音频输入/输出设备,以便我可以编写一个简单的托盘应用程序/热键应用程序来简化此操作?

Is there anyway to programmatically switch audio input/output devices, so that I can write a simple tray app/hotkey app to make this easier?

推荐答案

如果您正在考虑以编程方式更改默认设备,那么这在设计上是不可能的.

If you are looking into changing default devices programmatically, then this is impossible by design.

这篇关于在 Windows 7 上以编程方式切换音频设备的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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