- Inside Macintosh: Sound /
- Chapter 2 - Sound Manager / Sound Manager Reference
Sound Manager Routines
This section describes the routines provided by the Sound Manager. You can use these routines to
- 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
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.
- Assembly-Language Note
- Most Sound Manager routines are accessed through the
_SoundDispatch selector. However, the SndAddModifier, SndControl, SndDisposeChannel, SndDoCommand, SndDoImmediate, SndNewChannel, and SndPlay functions and the SysBeep 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
-
© Apple Computer, Inc.
2 JUL 1996