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 theSndChannelStatus
function 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 theSndChannelStatus
function executes successfully, the fields of the record specified bytheStatus
accurately describe the sound channel specified bychan
.SPECIAL CONSIDERATIONS
You can call theSndChannelStatus
function at interrupt time.ASSEMBLY-LANGUAGE INFORMATION
The trap macro and routine selector for theSndChannelStatus
function 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.