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.

SndGetSysBeepState

You can use the SndGetSysBeepState procedure to determine if the system alert sound is enabled.

PROCEDURE SndGetSysBeepState (VAR sysBeepState: Integer);
sysBeepState
On exit, the state of the system alert sound.
DESCRIPTION
The SndGetSysBeepState procedure returns one of two states in the sysBeepState parameter, either the sysBeepDisable or the sysBeepEnable constant.

CONST
   sysBeepDisable    = $0000;    {system alert sound disabled}
   sysBeepEnable     = $0001;    {system alert sound enabled}
SPECIAL CONSIDERATIONS
You can call the SndGetSysBeepState procedure at interrupt time.

ASSEMBLY-LANGUAGE INFORMATION
The trap macro and routine selector for the SndGetSysBeepState procedure are
Trap macroSelector
_SoundDispatch$00180008


Previous Book Contents Book Index Next

© Apple Computer, Inc.
2 JUL 1996