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.
VARTYPE | Description |
---|---|
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
Requirement | Value |
---|---|
Minimum supported client |
Windows Vista [desktop apps only] |
Minimum supported server |
Windows Server 2008 [desktop apps only] |
Header |
|
See also