ISimpleAudioVolume::SetMasterVolume for specific application

264 views Asked by At

According this code: https://stackoverflow.com/a/48838523/3478155 the overall sound is adjusted. But I need to adjust the sound of a specific application. Also, i need to display a list of applications that appear when the volume mixer is activated (by clicking on it with the mouse, as an example).

1

There are 1 answers

2
Jeaninez - MSFT On

ISimpleAudioVolume::SetMasterVolume method sets the master volume level for the audio session. In my opinion, you couldn't use the method for specific application.

I suggest you could try to use ISimpleAudioVolume and IAudioSessionEvents interfaces. For more details you can refer to the Doc: Volume Controls

When you use an app to play a sound, the app will appear in the Volume Mixer.