Microsoft DirectX 8.1 (C++)

AMTimelineObj.FixTimes2 Method

The AMTimelineObj.FixTimes2 method rounds the specified start and stop times to the nearest frame boundaries, as defined by the parent group's frame rate setting.

Syntax

object.FixTimes2(
    pStart As Double,
    REFTIME As Double*pStop
)

Parameters

pStart

Variable that contains the start time, in seconds. If the call succeeds, the value is set to the rounded time.

pStop

Variable that contains the stop time, in seconds. If the call succeeds, the value is set to the rounded time.

Error Codes

If the method fails, an error is raised, and Err.Number can be set to one of the following values:

Value Description
E_NOTINTREE The object is not in the timeline.

Remarks

During rendering, DES rounds the object's start and stop times to the nearest frame boundary. However, DES does not overwrite the object's times. If you change the group frame rate, the rounded times are always calculated from the original times. For more information, see Frame Rates.

Use this method to determine accurate start and stop times in the rendered project. For example, if you seek within the project, seek to the rounded times and not the original times. Call GetStartStop2 to obtain the original times, and pass those values to FixTimes2.

See Also