Brainiac
Brainiac

Reputation: 295

Enumerate Audio Sessions in Windows

I would like to enumerate all Audio Sessions with Windows Audio Core APIs and be able to manipulate the Sessions Volumes, but I can't find a way to enumerate the audio sessions and get some Interface like the ISimpleAudioVolume Interface. I can only enumerate the IAudioSessionManager2 to get the IAudioSessionControl Interfaces for all running sessions. But this interface only enables me to get the icons and descriptions. But no option to get the session guid. In order to get the ISimpleAudioVolume of a session I need the session guid to make use of IAudioSessionManager::GetSimpleAudioVolume.

Edit: I may get the proper guid from IAudioSessionControl::GetGroupingParam but I get 12 audio sessions. Why do I get so many sessions, when sndvol only displays 3 outputs?

How do I enumerate all running audio sessions and get the ISimpleAudioVolume Interfaces for them?

I've got instances of IAudioSessionManager and IAudioSessionManager2 available.

Upvotes: 0

Views: 426

Answers (0)

Related Questions