Mailing Lists: Apple Mailing Lists
Image of Mac OS face in stamp
sound drop outs
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

sound drop outs



I am trying to replace an audio track with completely new audio, and it currently drops out roughly every second second. I am (for reasons to do with sound source) currently using overly huge uncompressed WAVs, but it seems to work if I add the sound in a new track rather than replace an old one. The movie also contains a video track.
Any ideas? I'm not quite sure how to track it down. I've tried doing an UpgradeMovieResource afterwards, and it doesn't seem to make much difference, and also saving and flattening the movie doesn't help.

Regards
David



dstTrack = GetMovieIndTrackType(destMovie, trackNumber, SoundMediaType, movieTrackMediaType);
if( dstTrack == nil) {
//create a new track if track does not already exist
dstTrack = NewMovieTrack(movieData, 0, 0, kFullVolume);
dstMedia = NewTrackMedia(dstTrack,SoundMediaType, sndTime, nil, nil); //no dataref means use existing file storage
} else {
dstMedia = GetTrackMedia (dstTrack);
}
theError = BeginMediaEdits(dstMedia);
theError = InsertTrackSegment(sndSource, dstTrack,0,sndduration,0);
theError = EndMediaEdits(dstMedia);
theError = CloseMovieFile(fileRef);
_______________________________________________
quicktime-api mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/quicktime-api
Do not post admin requests to the list. They will be ignored.


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

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2011 Apple Inc. All rights reserved.