SndDoCommand
SndChannelPtr chan; a pointer to a sound channel
Boolean noWait; 0=await completion; 1=immediate return 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
does not send the command and returns the queueFull result code.
noErr (0) No error
resProblem (-204) Problem loading the resource
badChannel (-205) Channel is corrupt or unusable