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/SelectAnEffect.txt
// Create an atom container to hold the parameters |
// for the effect. |
myErr = QTNewAtomContainer(&gEffectSample); |
BailError(myErr); |
// QTGetEffectsList returns a QTAtomContainer holding a |
// list of the currently installed effects components |
myErr = QTGetEffectsList(&gEffectList, theSpecCount, theSpecCount, 0); |
BailError(myErr); |
// Ask the user to select an effect. On return, the |
// gEffectSample atom container holds an effect description |
// for the effect selected by the user, including the parameter |
// settings. This effect description can then be added |
// to the media of an effect track. You will need to add |
// source atoms to this container for effects that require |
// sources. |
myErr = QTCreateStandardParameterDialog(gEffectList, gEffectSample, 0, &gEffectsDialog); |
BailError(myErr); |
Copyright © 2003 Apple Computer, Inc. All Rights Reserved. Terms of Use | Privacy Policy | Updated: 2003-01-14