Microsoft DirectX 8.1 (C++)

IAMTimelineTrack::GetSrcAtTime2

The GetSrcAtTime2 method retrieves the source object nearest to the specified time, according to the specified boundary conditions. This method is equivalent to IAMTimelineTrack::GetSrcAtTime, but takes a REFTIME value.

Syntax

HRESULT GetSrcAtTime2(
    IAMTimelineObj **ppSrc,
    REFTIME Time,
    long SearchDirection
);

Parameters

ppSrc

[out] Address of a pointer that receives the IAMTimelineObj interface of the source object.

Time

Start time for the search, in seconds.

SearchDirection

Member of the DEXTERF_TRACK_SEARCH_FLAGS enumerated type that specifies the boundary conditions for the search.

Return Value

Returns one of the following HRESULT values:

Value Description
S_FALSE Did not locate a source object.
S_OK Located a source object.
E_INVALIDARG Invalid argument.
E_POINTER NULL pointer argument.

See Also