SetMovieMasterTimeBase
You can use theSetMovieMasterTimeBasefunction to assign a master time base to a movie. Do not use theSetTimeBaseMasterTimeBasefunction (described on page 2-301) to assign a time base to a movie.
pascal void SetMovieMasterTimeBase (Movie theMovie, TimeBase tb, const TimeRecord *slaveZero);
theMovie- Specifies the movie for this operation. Your application obtains this movie identifier from such functions as
NewMovie,NewMovieFromFile, andNewMovieFromHandle(described on page 2-80, page 2-76, and page 2-78, respectively).tb- Specifies the master time base to be assigned to this movie. Your application obtains this time base identifier from the
NewTimeBasefunction (described on page 2-297).slaveZero- Contains a pointer to the time, in the time scale of the master time base, that corresponds to a 0 time value for the movie. This parameter allows you to set an offset between the movie and the master time base. Set this parameter to
nilif there is no offset.SPECIAL CONSIDERATIONS
TheSetMovieMasterTimeBasefunction cannot be called at interrupt time.ERROR CODES
None
Main | Top of Section | What's New | Apple Computer, Inc. | Find It | Feedback | Help