Carbon


SndCommand

Header: Sound.h

struct SndCommand {
    UInt16 cmd; 
    SInt16 param1; 
    SInt32 param2;
};

Field descriptions

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.

A sound command structure 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 structure.

The meaning of the param1 and param2 fields depends on the particular sound command being issued. See “Sound Command Numbers A” for a description of the sound commands your application can use.

You should use this data structure only if you need to access this information or to customize sound play.


© 2000 Apple Computer, Inc. (Last Updated 6/30/2000)