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

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

问题描述

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

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.

  • Programatically setting the default playback device (and recording device)
  • How to change default sound playback device programatically?

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

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