Previous Book Contents Book Index Next

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


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.

Sound Command Records

A sound command record describes a sound command that you send to a sound channel using the SndDoCommand or SndDoImmediate function. The SndCommand data type defines a sound command record.

TYPE SndCommand =
PACKED RECORD
   cmd:        Integer;    {command number}
   param1:     Integer;    {first parameter}
   param2:     LongInt;    {second parameter}
END;
Field Description
cmd
The number of the sound command you wish to execute.
param1
The first parameter of the sound command.
param2
The second parameter of the sound command.
The meaning of the param1 and param2 fields depends on the particular sound command being issued. See "Sound Command Numbers" beginning on page 2-92 for a description of the sound commands your application can use.


Previous Book Contents Book Index Next

© Apple Computer, Inc.
2 JUL 1996