MF_AUDIO_RENDERER_ATTRIBUTE_FLAGS attribute
Contains flags to configure the audio renderer.
Data type
UINT32
Remarks
The value of this attribute is a bitwise OR of the following flags.
Value | Description |
---|---|
MF_AUDIO_RENDERER_ATTRIBUTE_FLAGS_CROSSPROCESS | The audio renderer is uses a cross-process audio session. This flag enables audio renderers in multiple processes to share the same audio session, along with the associated volume and policy controls. If this flag is not set, the audio session cannot be shared by audio renderers in other processes. |
MF_AUDIO_RENDERER_ATTRIBUTE_FLAGS_NOPERSIST | The Windows audio session API (WASAPI) will not persist the properties for this audio session, such as the session volume. If this flag is not set, WASAPI will persist the audio session properties. |
You can use this attribute to configure the audio renderer. The usage depends on which function you call to create the audio renderer:
- MFCreateAudioRenderer: Set this attribute using the IMFAttributes interface pointer specified in the pAudioAttributes parameter.
- MFCreateAudioRendererActivate: Set this attribute using the IMFActivate interface pointer retrieved in the ppActivate parameter. Set the attribute before calling IMFActivate::ActivateObject.
The GUID constant for this attribute is exported from mfuuid.lib.
Requirements
Requirement | Value |
---|---|
Minimum supported client |
Windows Vista [desktop apps only] |
Minimum supported server |
Windows Server 2008 [desktop apps only] |
Header |
|
See also