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 theSndSetSysBeepState
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 theSndSetSysBeepState
function to temporarily disable the system alert sound while you play a sound and then enable the alert sound when you are done. ThesysBeepState
parameter should be set to eithersysBeepDisable
orsysBeepEnable
.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 theSndSetSysBeepState
function at interrupt time.ASSEMBLY-LANGUAGE INFORMATION
The trap macro and routine selector for theSndSetSysBeepState
function are
Trap macro Selector _SoundDispatch $001C0008 RESULT CODES
noErr 0 No error paramErr -50 A parameter is incorrect