Microsoft DirectX 8.1 (C++) |
The SetTime method sets the stream times when this sample should begin and finish.
Syntax
HRESULT SetTime(
REFERENCE_TIME *pTimeStart,
REFERENCE_TIME *pTimeEnd
);
Parameters
pTimeStart
[in] Pointer to the stream time at which the sample begins, in 100-nanosecond units.
pTimeEnd
[in] Pointer to the stream time at which the sample ends, in 100-nanosecond units.
Return Value
Returns S_OK, or HRESULT value indicating the cause of the error.
Remarks
To invalidate the stream times, set pTimeStart and pTimeEnd to NULL. This will cause the IMediaSample::GetTime method to return VFW_E_SAMPLE_TIME_NOT_SET.
For more information about stream times, see Time and Clocks in DirectShow.
See Also