IMFSpatialAudioSample::AddSpatialAudioObject method (mfspatialaudio.h)

Adds a new spatial audio object, represented by an IMFSpatialAudioObjectBuffer object, to the sample.

Syntax

HRESULT AddSpatialAudioObject(
  [in] IMFSpatialAudioObjectBuffer *pAudioObjBuffer
);

Parameters

[in] pAudioObjBuffer

A pointer to the new IMFSpatialAudioObject.

Return value

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

Return code Description
S_OK
The method succeeded.
E_POINTER
The supplied pointer is invalid.

Requirements

Requirement Value
Minimum supported client Windows 10, version 1703 [desktop apps only]
Minimum supported server None supported
Target Platform Windows
Header mfspatialaudio.h (include Mfobjects.h)
Library Mfobjects.lib

See also

IMFSpatialAudioSample