管理应用量在Windows 7 [英] Managing apps volume in Windows 7
问题描述
我怎样才能获取应用程序的音频会话列表(就像在Windows音量调音台)
和一个应用程序的变化量(例如,Mozilla的)手动(C ++,Delphi的)? Skype的做一些事情一样,当你开始谈论(减少其他应用程序的音量)。在此先感谢!
How can I retrieve the list of application audio sessions (like in Windows volume mixer) and change volume of one application (for example, Mozilla) manually (C++, Delphi)? Skype do something the same when you start talking (decreases the volume of other applications). Thanks in advance!
推荐答案
要列举音频会议,你必须使用<$c$c>IAudioSessionManager2$c$c>接口并调用 GetSessionEnumerator 方法,这会返回一个<一个href=\"http://msdn.microsoft.com/en-us/library/dd370950%28VS.85%29.aspx\"><$c$c>IAudioSessionEnumerator$c$c>接口,从这里你必须调用<一个href=\"http://msdn.microsoft.com/en-us/library/dd368286%28v=vs.85%29.aspx\"><$c$c>GetSession$c$c>方法返回一个<一个href=\"http://msdn.microsoft.com/en-us/library/dd368246%28v=vs.85%29.aspx\"><$c$c>IAudioSessionControl$c$c>接口至极提供所有功能以检索相关的音频会话信息。作为附加讲座试试这个MSDN文章<一个href=\"http://msdn.microsoft.com/en-us/library/windows/desktop/dd316773%28v=vs.85%29.aspx\"><$c$c>Default闪避经验 。
To enumerate the Audio sessions you must use the IAudioSessionManager2
interface and call the GetSessionEnumerator method, this will return a IAudioSessionEnumerator
interface , from here you must invoke the GetSession
method to return a IAudioSessionControl
interface wich provides all the functions to retrieve the info related to the audio sessions. as additional lecture try the this MSDN article Default Ducking Experience
.
这篇关于管理应用量在Windows 7的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!