Microsoft DirectX 8.1 (C++)

AMTimelineSrc.FixMediaTimes2 Method

The AMTimelineSrc.FixMediaTimes2 method rounds the specified time values to the nearest frame boundary, as defined by the output frame rate. In general, applications do not need to call this method.

Syntax

object.FixMediaTimes2(
    pStart As Double,
    pStop As Double
)

Parameters

pStart

Start time, in seconds. If the call succeeds, this variable is set to the rounded time.

pStop

Stop time, in seconds. If the call succeeds, this variable is set to the rounded time.

Error Codes

If the method fails, an error is raised.

Remarks

This method is similar to the AMTimelineObj.FixTimes2 method, but it preserves the original ratio of media times and timeline times. Just rounding the times to the nearest frame boundary could distort this ratio.

See Also