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 Manager Routines
This section describes the routines provided by the Sound Manager. You can use these routines to
The section "Application-Defined Routines" on page 2-151 describes routines that your application might need to define, including callback procedures, completion routines, and doubleback procedures.
- play sound resources
- play sounds stored in files directly from disk
- allocate and release sound channels
- send commands to a sound channel
- obtain information about the Sound Manager, a sound channel, all sound channels, or the system alert sound's status
- compress and expand audio data
- manage the reading and writing of double sound buffers
- Assembly-Language Note
- Most Sound Manager routines are accessed through the
_SoundDispatch
selector. However, theSndAddModifier
,SndControl
,SndDisposeChannel
,SndDoCommand
,SndDoImmediate
,SndNewChannel
, andSndPlay
functions and theSysBeep
procedure are accessed through their own trap macros. See "Summary of the Sound Manager," which begins on page 2-157, for a list of trap selector numbers.
Subtopics
- Playing Sound Resources
- Playing From Disk
- Allocating and Releasing Sound Channels
- Sending Commands to a Sound Channel
- Obtaining Information
- Controlling Volume Levels
- Compressing and Expanding Audio Data
- Managing Double Buffers
- Performing Unsigned Fixed-Point Arithmetic
- Linking Modifiers to Sound Channels