Important: Inside Macintosh: Sound is deprecated as of Mac OS X v10.5. For new audio development in Mac OS X, use Core Audio. See the Audio page in the ADC Reference Library.
Sound Component-Defined Routines
This section describes the routines you need to define in order to write a sound component. You need to write routines to
Some of these routines are optional for some types of sound components. All routines return result codes. If they succeed, they should return
- load, configure, and unload your sound component
- add and remove audio sources
- read and set component settings
- control and process audio data
noErr
. To simplify dispatching, the Component Manager requires these routines to return a value of typeComponentResult
.See "Writing a Sound Component" beginning on page 5-8 for a description of how you call these routines from within a sound component. See "Sound Manager Utilities" beginning on page 5-33 for a description of some Sound Manager utility routines you can use in a sound component.
Subtopics
- Managing Sound Components
- Creating and Removing Audio Sources
- Getting and Setting Sound Component Information
- Managing Source Data