在Vista上更改默认扬声器配置 [英] Changing default speaker configuration on Vista

查看:244
本文介绍了在Vista上更改默认扬声器配置的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正准备在Windows Vista和Windows XP的不同扬声器配置下测试声音的应用程序.
为此,我正在使用API​​ SetSpeakerConfig()设置不同的配置,并使用API​​ GetSpeakerConfig()来获取相同的配置. br>在Windows XP中工作正常.但是在Windows Vista中不是.
对SetSpeakerConfig()的调用在Vista中成功完成,但实际上并没有改变.
除了使用声音"控制面板之外,还有其他方法吗?

i am preparing application to test sound at different speaker configuration for Windows vista and Windows XP.
for doing this i am using API SetSpeakerConfig() to set the different configuration and API GetSpeakerConfig()for getting same configuration.
this is working fine in Windows XP. but not in Windows Vista.
The call to SetSpeakerConfig() succeeds in Vista, but doesn''t actually change anything.
Is there any way other than by using the Sound control panel.

推荐答案

使用waveOutGetDevCaps()和waveOutGetVolume()和waveOutSetVolume()API.
Use waveOutGetDevCaps() and waveOutGetVolume() and waveOutSetVolume() APIs.


这篇关于在Vista上更改默认扬声器配置的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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