Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Managing apps volume in Windows 7

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!

like image 281
DuXeN0N Avatar asked Jul 26 '12 08:07

DuXeN0N


1 Answers

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.

like image 139
RRUZ Avatar answered Sep 20 '22 10:09

RRUZ