Skip to main content

IAudioStateMonitor::GetSoundLevel method

[Some information relates to pre-released product which may be substantially modified before it’s commercially released. Microsoft makes no warranties, express or implied, with respect to the information provided here.] Gets the current sound level of the streams associated with IAudioStateMonitor.

Syntax

Parameters

This method has no parameters.

Return value

A value from the AudioStateMonitorSoundLevel enumeration indicating the current sound level of the streams associated with the IAudioStateMonitor.

Remarks

Consider the following scenario, where a game chooses to play GameMedia audio only when it is known that the audio will not be muted by the OS due to policy. In order to achieve this, the game registers for SoundLevel notifications for the AudioCategory_GameMedia stream category on the default console endpoint. If the SoundLevel for this category is set to ‘Muted’ then the game will stop playback of its GameMedia stream. If the SoundLevel is set to anything else, the game chooses to play its GameMedia stream.
A value from the AudioStateMonitorSoundLevel enumeration. Indicates the current sound level of the streams associated with IAudioStateMonitor.

Requirements

Header: Audiostatemonitorapi.h Supported platforms: Windows, XBOX One family consoles and XBOX Series consoles

See also

IAudioStateMonitor About WASAPI
Last modified on August 20, 2026