Expand Minimize

KSAUDIOENGINE_BUFFER_SIZE_RANGE structure

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 _KSAUDIO_BUFFER_SIZE_RANGE {
  ULONG MaxBufferBytes;
  ULONG MinBufferBytes;
} KSAUDIOENGINE_BUFFER_SIZE_RANGE, *PKSAUDIOENGINE_BUFFER_SIZE_RANGE;

Members

MaxBufferBytes

Specifies the maximun 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.

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.

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

Version

Windows 8

Header

Ksmedia.h

See also

KSDATAFORMAT_WAVEFORMATEX
KSPROPERTY_AUDIOENGINE
KSPROPERTY_AUDIOENGINE_BUFFER_SIZE_RANGE

 

 

Send comments about this topic to Microsoft

Show:
© 2014 Microsoft