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.
SndManagerStatus
You can use theSndManagerStatusfunction to determine information about all sound channels currently allocated.
FUNCTION SndManagerStatus (theLength: Integer; theStatus: SMStatusPtr): OSErr;
theLength- The size in bytes of the Sound Manager status record. You should set this field to
 SizeOf(SMStatus).theStatus- A pointer to a Sound Manager status record.
 DESCRIPTION
TheSndManagerStatusfunction determines information about all currently allocated sound channels. If theSndManagerStatusfunction executes successfully, the fields of the record specified bytheStatusaccurately describe the current status of the Sound Manager.SPECIAL CONSIDERATIONS
You can call theSndManagerStatusfunction at interrupt time.ASSEMBLY-LANGUAGE INFORMATION
The trap macro and routine selector for theSndManagerStatusfunction are
Trap macro Selector _SoundDispatch $00140008 RESULT CODES
noErr 0 No error