如何以编程方式更改默认声音播放设备? [英] How to change default sound playback device programmatically?

查看:119
本文介绍了如何以编程方式更改默认声音播放设备?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何更改默认的默认音频设备以通过Vista进行播放和录制?

How to change the default default audio device for playback and recording in vista programmatically ?

在XP窗口中是否有诸如声音管理器之类的注册表设置?

Is there any registry setting for it like sound manager in window XP?

使用哪个API?

推荐答案

没有公共API允许您更改默认的音频设备,即被认为在用户控制之下的功能.在Windows中一直如此.

There is no public API which allows you to change the default audio device, that is functionality that is considered to be under the users control. This has always been the case in Windows.

已经说过,如果您在网上搜索,那么会有很多人对Windows Vista中用于执行此操作的API进行了反向工程,但是我不打算向他们指出(反向工程API是内部不受支持的API,并且可能会更改,恕不另行通知.)您自担风险使用这些解决方案.

Having said that, if you search the web, there are a number of people who have reverse engineered the APIs that are used in Windows Vista to do this, but I'm not going to point you to them (the reverse engineered APIs are internal unsupported APIs and may change without notice from Microsoft). You use these solutions at your own peril.

这篇关于如何以编程方式更改默认声音播放设备?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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