Previous Book Contents Book Index Next

Inside Macintosh: Sound /
Chapter 2 - Sound Manager / Sound Manager Reference
Sound Manager Routines / Obtaining Information


Legacy Documentclose button

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 the SndManagerStatus function 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
The SndManagerStatus function determines information about all currently allocated sound channels. If the SndManagerStatus function executes successfully, the fields of the record specified by theStatus accurately describe the current status of the Sound Manager.

SPECIAL CONSIDERATIONS
You can call the SndManagerStatus function at interrupt time.

ASSEMBLY-LANGUAGE INFORMATION
The trap macro and routine selector for the SndManagerStatus function are
Trap macroSelector
_SoundDispatch$00140008

RESULT CODES
noErr0No error

Previous Book Contents Book Index Next

© Apple Computer, Inc.
2 JUL 1996