IAudioStateMonitor::GetSoundLevel method (audiostatemonitorapi.h)

Gets the current sound level for the audio streams associated with an IAudioStateMonitor.

Syntax

AudioStateMonitorSoundLevel GetSoundLevel();

Return value

A value from the AudioStateMonitorSoundLevel enumeration specifying the current sound level for the audio stream.

Remarks

Windows dynamically mutes or lowers the level of audio streams in response to system events. For example, the volume of a podcast app's audio render stream may be lowered while an alarm is ringing. Or an audio recording app may have their capture stream muted when the app moves to the background. Register an implementation of the AudioStateMonitorCallback event to receive notifications when the sound level for a category of audio streams changes.

Requirements

Requirement Value
Minimum supported client Windows build 19043
Header audiostatemonitorapi.h