Skip to main content

IAudioStateMonitor::UnregisterCallback method

Unregisters a callback previously registered with IAudioStateMonitor::RegisterCallback.

Syntax

Parameters

registration
Type: AudioStateMonitorRegistrationHandle
A 64-bit integer that identifies the callback to be unregistered. This value is returned in the registration parameter of the RegisterCallback method.

Return value

This method does not return a value.

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.

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