Vista/win7 application volume control interface

馋奶兔 提交于 2020-01-15 09:51:33

问题


Which interface should I use to control the volume of my application on Vista or Windows 7?

The programming language doesn't matter.


回答1:


A brief history of the windows audio API's

There are several volume control points in Vista/W7

You probably want to use the ISimpleAudioVolume interface




回答2:


This here article/library did it for me. Import it and use ONELINER to set global application volume, which works with old style API that will work on XP and 7 as well.

http://www.dreamincode.net/forums/topic/45693-controlling-sound-volume-in-c%23/



来源:https://stackoverflow.com/questions/2349112/vista-win7-application-volume-control-interface

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!