ScaleMovieSegment
The ScaleMovieSegment function changes the duration of a segment of a movie. The Movie Toolbox scales the segment to accommodate the new duration.
pascal OSErr ScaleMovieSegment (Movie theMovie, TimeValue in,
TimeValue oldDuration,
TimeValue newDuration);
theMovie
- Specifies the movie for this operation. Your application obtains this movie identifier from such functions as
NewMovie, NewMovieFromFile, and NewMovieFromHandle (described on page 2-80, page 2-76, and page 2-78, respectively).
in
- Specifies the start of the segment. The
oldDuration parameter specifies the segment's duration. This time value must be expressed in the movie's time scale.
oldDuration
- Specifies the duration of the segment in the source movie. This time value must be expressed in the movie's time scale.
newDuration
- Specifies the new duration of the segment. This time value must be expressed in the movie's time scale. The function alters the segment to accommodate the new duration.
ERROR CODES
| invalidMovie | -2010 | This movie is corrupted or invalid |
| invalidDuration | -2014 | This duration value is invalid |
| invalidTime | -2015 | This time value is invalid |
Memory Manager errors