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);