IltmmSampleSource::DeliverSample

Summary

Delivers a sample to an object "downstream" of the Sample Source object.

Syntax

#include "ltmm.h"

Language Syntax
C HRESULT IltmmSampleSource_DeliverSample(pSampleSource, TimeOut, MediaSample)
C++ HRESULT DeliverSample(TimeOut, MediaSample)

Parameters

IltmmSampleSource *pSampleSource

Pointer to an IltmmSampleSource interface that references the sample object that is delivering the sample.

long TimeOut

Maximum time to allow for sample delivery, in milliseconds. If this function "times out" then E_FAIL is returned and the sample is not delivered.

IltmmMediaSampleDisp *MediaSample

Pointer to an IltmmMediaSampleDisp interface that references the sample to be delivered.

Returns

Value Meaning
S_OK The function was successful.
<> S_OK An error occurred. Refer to the Error Codes or the HRESULT error codes in the DirectShow documentation.

Comments

Users must only pass in samples returned from the IltmmSampleSource::GetSampleBuffer Function. Do not pass samples obtained by calling GetSampleBuffer from another interface. You should release the sample once it has been delivered, and should not attempt to make any further modifications to the sample.

Required DLLs and Libraries

Platforms

Win32, x64.

See Also

Functions

Topics

Example

Language Example
C Creating an AVI File from Bitmaps Using ltmmSampleSource
C++ Creating an AVI File from Bitmaps Using ltmmSampleSource
Help Version 23.0.2024.2.29
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2024 LEAD Technologies, Inc. All Rights Reserved.

LEADTOOLS Multimedia C API Help
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2023 LEAD Technologies, Inc. All Rights Reserved.