GetMovieTimeBase
TheGetMovieTimeBasefunction returns a movie's time base.
pascal TimeBase GetMovieTimeBase (Movie theMovie);
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).DESCRIPTION
You cannot use the returned time base value with the Movie Toolbox'sSetTimeBaseMasterTimeBaseandSetTimeBaseMasterClockfunctions (described on page 2-301 and page 2-299, respectively). Use theSetMovieMasterTimeBaseandSetMovieMasterClockfunctions (described on page 2-299 and page 2-298, respectively) instead.The Movie Toolbox disposes of a movie's time base when you dispose of the movie.
SPECIAL CONSIDERATIONS
Do not dispose of theTimeBaseresult returned by theGetMovieTimeBasefunction as it is owned by the movie.ERROR CODES
invalidMovie -2010 This movie is corrupted or invalid