KSPROPERTY_AUDIO_BUFFER_DURATION
The KSPROPERTY_AUDIO_BUFFER_DURATION property allows the size of the client application buffer to be reported as time duration.
Usage Summary Table
Get | Set | Target | Property descriptor type | Property value type |
---|---|---|---|---|
No |
Yes |
Pin |
KSPROPERTY |
ULONG |
The property value is of type ULONG and represents the client buffer duration that is measured in milliseconds.
Return Value
A KSPROPERTY_AUDIO_BUFFER_DURATION property request returns STATUS_SUCCESS to indicate that the property request has completed successfully. Otherwise, the request returns an appropriate error status code.
Remarks
You can adjust the duration of the request for isochronous audio data capture to help improve the performance of your USB audio device. A shorter duration reduces latency but it also means that the USB audio stack must make more frequent deferred procedure calls (DPC), which may cause degraded performance.
Requirements
Version |
Available in Windows 7 and later versions of Windows. |
Header |
Ksmedia.h (include Ksmedia.h) |