Muokkaa

Jaa


MF_MT_AUDIO_VALID_BITS_PER_SAMPLE attribute

Number of valid bits of audio data in each audio sample.

Data type

UINT32

Remarks

The MF_MT_AUDIO_VALID_BITS_PER_SAMPLE attribute is used for audio formats that contain padding after each audio sample. The total size of each audio sample, including padding bits, is given in the MF_MT_AUDIO_BITS_PER_SAMPLE attribute.

If the MF_MT_AUDIO_VALID_BITS_PER_SAMPLE attribute is not set, use the MF_MT_AUDIO_BITS_PER_SAMPLE attribute to find the number of valid bits per sample.

If an audio format does not contain any padding bits, then this attribute should not be set, or should be set to the same value as the MF_MT_AUDIO_BITS_PER_SAMPLE attribute.

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

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