IMFSpatialAudioObjectBuffer::SetID method

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

Syntax


HRESULT SetID(
   UINT32 u32ID
);

Parameters

u32ID

A 32-bit unsigned unique ID of the audio object.

Return value

The method returns an HRESULT. Possible values include, but are not limited to, those in the following table.

Return codeDescription
S_OK

The method succeeded.

 

Remarks

The object ID must be unique for each spatial audio sample. Subsequent samples can contain spatial audio objects with the same IDs to represent moving dynamic objects or constant static objects.

Requirements

Minimum supported client

Windows 10, version 1703 [desktop apps only]

Minimum supported server

None supported

Header

Mfobjects.h

Library

Mfobjects.lib

See also

IMFSpatialAudioObjectBuffer

 

 

Show: