ISpatialAudioClient::GetMaxFrameCount method

[Some information relates to pre-released product which may be substantially modified before it's commercially released. Microsoft makes no warranties, express or implied, with respect to the information provided here.]

Gets the maximum possible frame count per processing pass. This method can be used to determine the size of the source buffer that should be allocated to convey audio data for each processing pass.

Syntax


HRESULT GetMaxFrameCount(
  [in]  const WAVEFORMATEX *objectFormat,
  [out]       UINT32       *frameCountPerBuffer
);

Parameters

objectFormat [in]

The audio format used to calculate the maximum frame count. This should be the same format specified in the ObjectFormat field of the SpatialAudioObjectRenderStreamActivationParams passed to ActivateSpatialAudioStream.

frameCountPerBuffer [out]

The maximum number of audio frames that will be processed in one pass.

Return value

If the method succeeds, it returns S_OK.

Requirements

Header

Spatialaudioclient.h

See also

ISpatialAudioClient

 

 

Show: