// ksmedia.h
typedef struct _tagKSAUDIOENGINE_BUFFER_SIZE_RANGE {
ULONG MinBufferBytes;
ULONG MaxBufferBytes;
} KSAUDIOENGINE_BUFFER_SIZE_RANGE, *PKSAUDIOENGINE_BUFFER_SIZE_RANGE;
View the official Windows Driver Kit DDI referenceNo description available.
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.
MinBufferBytesSpecifies 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.
MaxBufferBytesSpecifies 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.
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.
KSPROPERTY_AUDIOENGINE_BUFFER_SIZE_RANGE