SndDoCommand
SndDoCommand Send commands to an open and linked synthesize
#include <Sound.h> Sound Manager
OSErr SndDoCommand(chan, cmd, noWait);
SndChannelPtr chan; a pointer to a sound channel
SndCommand *cmd; specifies the sound command
Boolean noWait; 0=await completion; 1=immediate return
returns Error Code; 0=no error
The SndDoCommand function sends the sound command specified in the cmd
parameter to the command queue of the channel specified in the chan
parameter.
chan a pointer to a sound channel
cmd is the specific sound to be played
noWait If the noWait parameter is set to FALSE and the queue is full, the
Sound Manager waits until there is space to add the command. If
noWait is set to TRUE and the channel is full, the Sound Manager
does not send the command and returns the queueFull result code.
Returns: an operating system Error Code.
noErr (0) No error
resProblem (-204) Problem loading the resource
badChannel (-205) Channel is corrupt or unusable