Edit

Share via


MF_MT_AUDIO_BITS_PER_SAMPLE attribute

Number of bits per audio sample in an audio media type.

Data type

UINT32

Remarks

This attribute corresponds to the wBitsPerSample member of the WAVEFORMATEX structure.

If some bits contain padding, set the MF_MT_AUDIO_VALID_BITS_PER_SAMPLE attribute to specify the number of bits of valid audio data in each sample.

If the audio contains 8 bits per sample, the audio samples are unsigned values. (Each audio sample has the range 0–255.) If the audio contains 16 bits per sample or higher, the audio samples are signed values.

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

Requirements

Requirement Value
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