ltmmSampleSource Object
The ltmmSampleSource Object allows the user to supply single media samples to the ltmmConvertCtrl and ltmmPlayCtrl objects.
To create an instance of an ltmmSampleSource object:
Dim object As ltmmSampleSource
Set object = New ltmmSampleSource
The ltmmSampleSource Object contains the following methods:
Methods
ltmmSampleSource.DeliverEndOfStream
ltmmSampleSource.DeliverSample
ltmmSampleSource.GetSampleBuffer
A sample source will provide samples having a specific media type. This media type is set in the ltmmMediaType object. The media type for the source sample is set by calling the ltmmSampleSource method SetMediaType. (To determine the media type of a sample, use the GetMediaType method.) The sample source object must be set for either an ltmmConvertCtrl Object or an ltmmPlayCtrl Object and then start either the play or the conversion process. Once that is done, the sample source can begin sending samples downstream.
Using the GetSampleBuffer method, obtain a free sample buffer. Set the appropriate sample information. Deliver the sample by calling the DeliverSample and release the buffer by setting the reference to Nothing. Continue sending samples until the end of the stream is reached. At that point, call the DeliverEndOfStream method and stop the play or conversion process. For more information on this whole process, refer to Implementing an ltmmSampleSource Object.
Win32, x64
See Also