MF_MT_AUDIO_PREFER_WAVEFORMATEX attribute

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

Data type

UINT32

Syntax

GUID MF_MT_AUDIO_PREFER_WAVEFORMATEX = {0xa901aaba,0xe037,0x458a,{0xbd,0xf6,0x54,0x5b,0xe2,0x07,0x40,0x42} }  

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

Header: Declared in mfapi.h.