Microsoft DirectX 9.0

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.

Requirements

Header: Include Qedit.h. This header file is not compatible with Microsoft® Direct3D® headers later than version 7.

Library: Use strmiids.lib.

See Also