Working With Time Base Values
Every time base contains a rate, a start time, a stop time, a current time, and some status information. The Movie Toolbox provides a number of functions that allow your application to work with the contents of a time base. This section describes those functions.The
GetTimeBaseTimefunction lets you retrieve the current time value of a time base. You can set the current time value by calling theSetTimeBaseTimefunction--this function requires you to provide a time structure. Alternatively, you can set the current time based on a time value by calling theSetTimeBaseValuefunction.You can determine the rate of a time base by calling the
GetTimeBaseRatefunction. You can set the rate of a time base by calling theSetTimeBaseRatefunction. You can determine the effective rate of a specified time base (relative to the master time base to which it is subordinate) by calling theGetTimeBaseEffectiveRatefunction.You can retrieve the start time of a time base by calling the
GetTimeBaseStartTimefunction. You can set the start time of a time base by calling theSetTimeBaseStartTimefunction. Similarly, you can use
theGetTimeBaseStopTimeandSetTimeBaseStopTimefunctions to work with the stop time of a time base.The Movie Toolbox provides functions that allow you to work with the status information of a time base. The
GetTimeBaseStatusfunction allows you to read the current status of a time base. TheGetTimeBaseFlagsfunction helps you obtain the control flags of a time base. You can set these flags by calling theSetTimeBaseFlagsfunction.
Subtopics
- SetTimeBaseTime
- SetTimeBaseValue
- GetTimeBaseTime
- SetTimeBaseRate
- GetTimeBaseRate
- GetTimeBaseEffectiveRate
- SetTimeBaseStartTime
- GetTimeBaseStartTime
- SetTimeBaseStopTime
- GetTimeBaseStopTime
- SetTimeBaseFlags
- GetTimeBaseFlags
- GetTimeBaseStatus