IMFSpatialAudioSample::GetObjectCount method (mfspatialaudio.h)

Gets the count of spatial audio objects, represented by IMFSpatialAudioObjectBuffer objects, in the sample.

Syntax

HRESULT GetObjectCount(
  [out] DWORD *pdwObjectCount
);

Parameters

[out] pdwObjectCount

A pointer to a 32 bit variable where the total number of audio objects in the sample will be stored.

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