|Microsoft DirectX 9.0|
The FixTimes2 method rounds the specified start and stop times to the nearest frame boundaries, as defined by the parent group's frame rate setting.
object.FixTimes2( pStart As Double, REFTIME As Double*pStop )
Variable that contains the start time, in seconds. If the call succeeds, the value is set to the rounded time.
Variable that contains the stop time, in seconds. If the call succeeds, the value is set to the rounded time.
If the method fails, an error is raised, and Err.Number can be set to one of the following values:
|E_NOTINTREE||The object is not in the timeline.|
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 Time in DirectShow Editing Services.
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.