MF_MT_AUDIO_CHANNEL_MASK attribute

In an audio media type, specifies the assignment of audio channels to speaker positions.

Data type

UINT32

The value of this attribute is a bitwise OR of the following flags, which are defined in the header file mmreg.h.

SPEAKER_FRONT_LEFT (0x1)

SPEAKER_FRONT_RIGHT (0x2)

SPEAKER_FRONT_CENTER (0x4)

SPEAKER_LOW_FREQUENCY (0x8)

SPEAKER_BACK_LEFT (0x10)

SPEAKER_BACK_RIGHT (0x20)

SPEAKER_FRONT_LEFT_OF_CENTER (0x40)

SPEAKER_FRONT_RIGHT_OF_CENTER (0x80)

SPEAKER_BACK_CENTER (0x100)

SPEAKER_SIDE_LEFT (0x200)

SPEAKER_SIDE_RIGHT (0x400)

SPEAKER_TOP_CENTER (0x800)

SPEAKER_TOP_FRONT_LEFT (0x1000)

SPEAKER_TOP_FRONT_CENTER (0x2000)

SPEAKER_TOP_FRONT_RIGHT (0x4000)

SPEAKER_TOP_BACK_LEFT (0x8000)

SPEAKER_TOP_BACK_CENTER (0x10000)

SPEAKER_TOP_BACK_RIGHT (0x20000)

Remarks

This attribute corresponds to the dwChannelMask member of the WAVEFORMATEXTENSIBLE structure.

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