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).
Asked
Active
Viewed 134 times
1 Answers
1
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.

Jeaninez - MSFT
- 3,210
- 1
- 5
- 20
-
Ya, thanks. In all SO nobody can't post full code for this. Why... – ilw Mar 14 '23 at 11:30
-
I suggest you could refer to the offical sample:https://github.com/microsoft/Windows-classic-samples/blob/27ffb0811ca761741502feaefdb591aebf592193/Samples/Win7Samples/multimedia/mediafoundation/MFPlayer2/AudioSessionVolume.cpp – Jeaninez - MSFT Mar 15 '23 at 06:50
-
@ilw Have you got any updates about this issue? Could you please check my answer? – Jeaninez - MSFT Mar 24 '23 at 08:30