Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Tracks sync (or something else) problem



Hi everyone, 
when I try to play a quicktime movie with two midi tracks I don't hear the first note of one of the tracks.
To add a track from existing movie I use this code:

Movie theMovie3 = midi1;
Track track1 = GetMovieTrack (midi2, 1);
Media media = GetTrackMedia(track1);

OSType myType;


Track track3 = NewMovieTrack(theMovie3, 0, 0,
GetTrackVolume(track1));
GetMediaHandlerDescription(media, &myType, 0, 0);
Media myDstMedia;
myDstMedia = NewTrackMedia(track3, myType,
GetMediaTimeScale(media), 0, 0);


OSErr err = InsertTrackSegment(track1, track3, 0,
  GetTrackDuration(track1), 0);
err = CopyTrackSettings(track1, track3);
return theMovie3;

Thanks!
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
QuickTime-API mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/quicktime-api/email@hidden

This email sent to email@hidden



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.