Retired Document
Important: This sample code may not represent best practices for current development. The project may use deprecated symbols and illustrate technologies and techniques that are no longer recommended.
Clippings/AddEffectsDescription.txt
// add the effects sample to the movie |
myErr = BeginMediaEdits(videoMediaFX); |
BailError(myErr); |
// add the sample to the media |
myErr = AddMediaSample(videoMediaFX, gEffectSample, 0, GetHandleSize(gEffectSample), myEffectDuration, (SampleDescriptionHandle)myDesc, 1, 0, &mySampleTime); |
BailError(myErr); |
myErr = EndMediaEdits(videoMediaFX); |
BailError(myErr); |
QTDisposeAtomContainer(gEffectSample); |
DisposeHandle((Handle)myDesc); |
// add the media to the track |
myErr = InsertMediaIntoTrack(videoTrackFX, 0, mySampleTime, myEffectDuration, fixed1); |
BailError(myErr); |
Copyright © 2003 Apple Computer, Inc. All Rights Reserved. Terms of Use | Privacy Policy | Updated: 2003-01-14