MediaStreamSource.AudioBufferLength Property

May 11, 2014

Gets or sets the length of the audio buffer. The value of this property is ignored on Windows Phone OS 7.1 and Windows Phone OS 8.0.

Namespace:  System.Windows.Media
Assembly:  System.Windows (in System.Windows.dll)

protected internal int AudioBufferLength { get; set; }

Property Value

Type: System.Int32
The length of the audio buffer in milliseconds. The value must be between 15 and 1000. The default value is 1000, which is a one second buffer.

This property is used to set the size of the audio buffer of the media pipeline.

Developers should set this property before calling ReportOpenMediaCompleted, if they want to use a value other than the default.

Version Notes

Windows Phone

 This property also sets the size of the video buffer in Windows Phone.

Windows Phone OS

Supported in: 8.1, 8.0, 7.1, 7.0

Windows Phone

© 2014 Microsoft