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.
SetSysBeepVolume
You can use theSetSysBeepVolumefunction to set the current volume of the system alert sound.
FUNCTION SetSysBeepVolume (level: LongInt): OSErr;
level- The desired volume level of the system alert sound.
DESCRIPTION
TheSetSysBeepVolumefunction sets the current volume level of the system alert sound. The values you can specify in the high and low words of thelevelparameter range from 0 (silence) to $0100 (full volume). Any calls to theSysBeepprocedure use the volume set by the most recent call toSetSysBeepVolume.SPECIAL CONSIDERATIONS
TheSetSysBeepVolumefunction is available only in versions 3.0 and later of the Sound Manager. You can call this function at interrupt time.ASSEMBLY-LANGUAGE INFORMATION
The trap macro and routine selector for theSetSysBeepVolumefunction are
Trap macro Selector _SoundDispatch $02280024 RESULT CODES
noErr 0 No error