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 theSetSysBeepVolume
function 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
TheSetSysBeepVolume
function sets the current volume level of the system alert sound. The values you can specify in the high and low words of thelevel
parameter range from 0 (silence) to $0100 (full volume). Any calls to theSysBeep
procedure use the volume set by the most recent call toSetSysBeepVolume
.SPECIAL CONSIDERATIONS
TheSetSysBeepVolume
function 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 theSetSysBeepVolume
function are
Trap macro Selector _SoundDispatch $02280024 RESULT CODES
noErr 0 No error