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.

SndSetSysBeepState

You can use the SndSetSysBeepState function to set the state of the system alert sound.

FUNCTION SndSetSysBeepState (sysBeepState: Integer): OSErr;
sysBeepState
The desired state of the system alert sound.
DESCRIPTION
You can use the SndSetSysBeepState function to temporarily disable the system alert sound while you play a sound and then enable the alert sound when you are done. The sysBeepState parameter should be set to either sysBeepDisable or sysBeepEnable.

If your application disables the system alert sound, be sure to enable it when your application gets a suspend event.

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

ASSEMBLY-LANGUAGE INFORMATION
The trap macro and routine selector for the SndSetSysBeepState function are
Trap macroSelector
_SoundDispatch$001C0008

RESULT CODES
noErr0No error
paramErr-50A parameter is incorrect

Previous Book Contents Book Index Next

© Apple Computer, Inc.
2 JUL 1996