Previous Book Contents Book Index Next

Inside Macintosh: Sound /
Chapter 2 - Sound Manager / Sound Manager Reference


Legacy Documentclose button

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.

Data Structures

This section describes the data structures that the Sound Manager defines. The Sound Manager uses many of these data structures (such as sound headers) to store information about sounds or sound channels. You should use these data structures only if you need to access this information or to customize sound play. The Sound Manager also defines several data structures that allow you to control sound output or to receive information about its status.

You use the sound command record to define a sound command that you send to the Sound Manager using either the SndDoCommand or SndDoImmediate functions.

If you want to play only a portion of a sound, you can use an audio selection record in conjunction with the SndStartFilePlay function.

You use the sound channel status record to obtain information from the Sound Manager about a specific sound channel, and you use the Sound Manager status record to obtain information about all sound channels.

The sound channel record stores information about a sound channel. Many of the fields of this record are for internal Sound Manager use only, but there are a few that you can access directly.

The sound header record stores information about sampled-sound data. You can use a sound header record to obtain information on a sound or to change a sound's loop points. The extended sound header record and the compressed sound header record add several fields to the sound header record that provide more information about a sound.

If your application uses the SndPlayDoubleBuffer function to customize the double buffering of sound data, you need to set up a sound double buffer header record, which must include pointers to two sound double buffer records.


Subtopics
Sound Command Records
Audio Selection Records
Sound Channel Status Records
Sound Manager Status Records
Sound Channel Records
Sound Header Records
Extended Sound Header Records
Compressed Sound Header Records
Sound Double Buffer Header Records
Sound Double Buffer Records
Chunk Headers
Form Chunks
Format Version Chunks
Common Chunks
Extended Common Chunks
Sound Data Chunks
Version Records
Leftover Blocks
State Blocks

Previous Book Contents Book Index Next

© Apple Computer, Inc.
2 JUL 1996