KSPROPERTY_AUDIOENGINE_BUFFER_SIZE_RANGE
The KSPROPERTY_AUDIOENGINE_BUFFER_SIZE_RANGE property indicates the minimum and maximum size of buffer that the hardware audio engine can support for a given data format, at the instance when it is called. The buffer size is specified in bytes.
Usage Summary Table
Get | Set | Target | Property descriptor type | Property value type |
---|---|---|---|---|
Yes |
No |
Node via filter |
KSP_NODE |
Return Value
A KSPROPERTY_AUDIOENGINE_BUFFER_SIZE_RANGE property request returns STATUS_SUCCESS to indicate that it has completed successfully. Otherwise, the request returns an appropriate error status code.
Remarks
It is important to note that before a caller calls the KSPROPERTY_AUDIOENGINE_BUFFER_SIZE_RANGE property, the caller fills in the fields of a KSDATAFORMAT_WAVEFORMATEX structure. So when KSPROPERTY_AUDIOENGINE_BUFFER_SIZE_RANGE is called, the audio driver receives a KSP_NODE followed by a filled-in KSDATAFORMAT_WAVEFORMATEX structure from the caller. The driver uses the data format information in this structure to determine the min and max buffer sizes to accommodate the specified data format. Upon a successful call to this property, the kernel streaming (KS) filter then fills in the MinBufferBytes and MaxBufferBytes fields of the KSAUDIOENGINE_BUFFER_SIZE_RANGE structure.
Requirements
Version |
Windows 8 |
Header |
Ksmedia.h |