KSAUDIOENGINE_BUFFER_SIZE_RANGE structure (ksmedia.h)

The KSAUDIOENGINE_BUFFER_SIZE_RANGE structure specifies the minimum and maximum buffer size that the hardware audio engine can support at the instance when it is called.

Syntax

typedef struct _tagKSAUDIOENGINE_BUFFER_SIZE_RANGE {
  ULONG MinBufferBytes;
  ULONG MaxBufferBytes;
} KSAUDIOENGINE_BUFFER_SIZE_RANGE, *PKSAUDIOENGINE_BUFFER_SIZE_RANGE;

Members

MinBufferBytes

Specifies the minimum buffer size in bytes that the hardware Audio Engine can support, at the instance when it is called. The minimum size is calculated to be the minimum size of buffer that will not cause frequent audio glitching.

MaxBufferBytes

Specifies the maximum available DMA buffer size in bytes that the hardware Audio Engine can support, at the instance when it is called. The capability and availability of the DMA engine and the internal DSP buffer are all taken into consideration.

Remarks

The audio stack uses the information about the buffer size limits to determine the optimum buffer size to allocate, to achieve low power playback. The audio stack also takes into account the data format that the caller specified in the KSDATAFORMAT_WAVEFORMATEX structure when it called the KSPROPERTY_AUDIOENGINE_BUFFER_SIZE_RANGE property.

Requirements

Requirement Value
Minimum supported client Windows 8
Header ksmedia.h

See also

KSDATAFORMAT_WAVEFORMATEX

KSPROPERTY_AUDIOENGINE

KSPROPERTY_AUDIOENGINE_BUFFER_SIZE_RANGE