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.
SndChannelStatus
You can use theSndChannelStatusfunction to determine the status of a sound channel.
FUNCTION SndChannelStatus (chan: SndChannelPtr; theLength: Integer; theStatus: SCStatusPtr): OSErr;
chan- A pointer to a valid sound channel.
theLength- The size in bytes of the sound channel status record. You should set this field to
SizeOf(SCStatus).theStatus- A pointer to a sound channel status record.
DESCRIPTION
If theSndChannelStatusfunction executes successfully, the fields of the record specified bytheStatusaccurately describe the sound channel specified bychan.SPECIAL CONSIDERATIONS
You can call theSndChannelStatusfunction at interrupt time.ASSEMBLY-LANGUAGE INFORMATION
The trap macro and routine selector for theSndChannelStatusfunction are
Trap macro Selector _SoundDispatch $00100008 RESULT CODES
noErr 0 No error paramErr -50 A parameter is incorrect badChannel -205 Channel is corrupt or unusable SEE ALSO
For information on the structure of a sound channel status record, see "Sound Channel Status Records" on page 2-101.