SetTrackAlternate
TheSetTrackAlternatefunction allows your application to add tracks to or remove tracks from alternate groups.
pascal void SetTrackAlternate (Track theTrack, Track alternateT);
theTrack- Specifies the track and group for this operation. Your application obtains this track identifier from such Movie Toolbox functions as
NewMovieTrackandGetMovieTrack(described on page 2-136 and page 2-188, respectively). TheSetTrackAlternatefunction changes this track's group affiliation based on the value of thealternateTparameter.alternateT- Controls whether the function adds the track to a group or removes it from a group. If the
alternateTparameter contains a valid track identifier, the Movie Toolbox adds this track to the group that contains the track specified by the parametertheTrack. Note that if the track identified by the parameteralternateTrackalready belongs to a group, the Movie Toolbox combines the two groups into a single group.- Set this parameter to
nilto remove the track specified by thetheTrackparameter from its group.ERROR CODES
invalidTrack -2009 This track is corrupted or invalid SEE ALSO
You can determine all the tracks in a group by calling theGetTrackAlternatefunction, which is described in the next section.
Main | Top of Section | What's New | Apple Computer, Inc. | Find It | Feedback | Help