Export (0) Print
Expand All
Expand Minimize

MEAudioSessionVolumeChanged event

Sent by the streaming audio renderer (SAR) when the volume or mute state of the audio session changes.

The Media Session forwards this event to the application.

Event values

Possible values retrieved from IMFMediaEvent::GetValue include the following.

VARTYPEDescription

VT_EMPTY

No event data.

VT_UNKNOWN

Pointer to the IMFAudioPolicy interface.

Remarks

This event is raised by the stream sink of the SAR. The event is triggered when the SAR receives an IAudioSessionEvents::OnSimpleVolumeChanged event from the audio session. To get the new volume level and mute state, call IMFSimpleAudioVolume::GetMasterVolume and IMFSimpleAudioVolume::GetMute.

The SAR sends this event if an external action changes the volume—for example, if the user changes the volume through the system volume-control program (SndVol). The SAR does not send the event if the application changes the volume directly on the SAR.

Also, the SAR does not send this event when the channel volume changes (IAudioSessionEvents::OnChannelVolumeChanged).

Requirements

Minimum supported client

Windows Vista [desktop apps only]

Minimum supported server

Windows Server 2008 [desktop apps only]

Header

Mfobjects.h (include Mfidl.h)

See also

Media Foundation Events
Streaming Audio Renderer

 

 

Community Additions

ADD
Show:
© 2015 Microsoft