IMiniportAudioEngineNode::GetBufferSizeRange method (portcls.h)

Gets the minimum and maximum buffer size that the hardware audio engine can support.

Syntax

NTSTATUS GetBufferSizeRange(
  [in]  ULONG                           ulNodeId,
  [in]  KSDATAFORMAT_WAVEFORMATEX       *pKsDataFormatWfx,
  [out] KSAUDIOENGINE_BUFFER_SIZE_RANGE *pBufferSizeRange
);

Parameters

[in] ulNodeId

The ID for the node that represents the audio device.

[in] pKsDataFormatWfx

A KSDATAFORMAT_WAVEFORMATEX structure that represents the audio data format for the audio device.

[out] pBufferSizeRange

A KSAUDIOENGINE_BUFFER_SIZE_RANGE structure that represents the minimum and maximum buffer size that the hardware audio engine can support at the time when it is called.

Return value

GetBufferSizeRange returns S_OK, if the call was successful. Otherwise, the method returns an appropriate error

code.

Requirements

Requirement Value
Minimum supported client Windows 8
Minimum supported server Windows Server 2012
Target Platform Universal
Header portcls.h

See also

IMiniportAudioEngineNode