ltmmMediaSample.BufferSize Property

Visual Basic example

Syntax

object.BufferSize As Long

Remarks

(Read only) Gets the size of the sample buffer, in bytes. It is set by upstream filters. The ltmmMediaSample.BufferSize property is the maximum size of the buffer, whereas the ltmmMediaSample.ActualDataLength property contains the size occupied by the valid data. Use the ltmmMediaSample.ActualDataLength property to set the size of the valid data in the buffer, which must not exceed the value reported by the ltmmMediaSample.BufferSize property.

Assignment could raise an error exception. For more information, refer to the Error Codes.

Platforms

Win32, x64

See Also

Elements:

ltmmMediaSample.ActualDataLength Property, ltmmMediaSample.Buffer Property, ltmmMediaSample.Discontinuity Property, ltmmMediaSample.Preroll Property, ltmmMediaSample.SyncPoint Property, ltmmMediaSample.GetData Method, ltmmMediaSample.GetMediaType Method, ltmmMediaSample.GetMediaTime Method, ltmmMediaSample.GetTime Method, ltmmMediaSample.ResetMediaTime Method, ltmmMediaSample.ResetTime Method, ltmmMediaSample.SetData Method, ltmmMediaSample.SetMediaTime Method, ltmmMediaSample.SetTime Method, ltmmMediaSample.SetMediaType Method

Topics:

ltmmMediaSample object