Share via


MediaStreamSource.AudioBufferLength Property

Microsoft Silverlight will reach end of support after October 2021. Learn more.

Gets or sets the length of the audio buffer.

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

Syntax

'Declaration
Protected Friend Property AudioBufferLength As Integer
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.

Remarks

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. For more information, see the “Buffer Management” section of Implementing MediaStream Sources.

Platform Notes

Silverlight for Windows Phone Silverlight for Windows Phone

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

Version Information

Silverlight

Supported in: 5, 4, 3

Silverlight for Windows Phone

Supported in: Windows Phone OS 7.1, Windows Phone OS 7.0

Platforms

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.