MF_MT_AUDIO_PREFER_WAVEFORMATEX attribute

Specifies the preferred legacy format structure to use when converting an audio media type.

Data type

UINT32

Treat as a Boolean value.

Remarks

This attribute provides a hint to the MFCreateWaveFormatExFromMFMediaType function. If the attribute is TRUE, the function converts the audio media type to a WAVEFORMATEX structure whenever possible, instead of converting it to a WAVEFORMATEXTENSIBLE structure.

The MFInitMediaTypeFromWaveFormatEx function sets this attribute. You can override the value of this attribute, but setting this attribute to TRUE does not guarantee that an audio media type can be converted to WAVEFORMATEX form.

The GUID constant for this attribute is exported from mfuuid.lib.

Requirements

Minimum supported client
Windows Vista [desktop apps | UWP apps]
Minimum supported server
Windows Server 2008 [desktop apps | UWP apps]
Header
Mfapi.h

See also

Alphabetical List of Media Foundation Attributes

IMFAttributes::GetUINT32

IMFAttributes::SetUINT32

IMFMediaType

Media Type Attributes