IMFSpatialAudioObjectBuffer interface

Represents a section of audio data with associated positional and rendering metadata. Spatial audio objects are stored in IMFSpatialAudioSample instances, and allow passing of spatial audio information between Media Foundation components.

Members

The IMFSpatialAudioObjectBuffer interface inherits from IMFMediaBuffer. IMFSpatialAudioObjectBuffer also has these types of members:

Methods

The IMFSpatialAudioObjectBuffer interface has these methods.

MethodDescription
GetID

Returns the unique, unsigned 32-bit ID of the spatial audio object represented by the buffer. If SetID method was not previously called, this method returns the invalid object ID, -1 (0xffffffff). The invalid ID indicates that the object buffer is unused and contains invalid data.

GetMetadataItems

Retrieves a pointer to a buffer that may contain spatial audio metadata.

GetType

Gets the type of the spatial audio object represented by the buffer. If SetType has not been called previously, this method returns the default value of AudioObjectType_None.

SetID

Sets the ID of the spatial audio object represented by the buffer.

SetType

Sets the type of the spatial audio object represented by the buffer.

 

Remarks

To get the audio data contained in the spatial audio object, use the IMFMediaBuffer::Lock and IMFMediaBuffer::Unlock methods.

Requirements

Minimum supported client

Windows 10, version 1703 [desktop apps only]

Minimum supported server

None supported

Header

Mfobjects.h

Library

Mfobjects.lib

See also

IMFMediaBuffer

 

 

Show: