SoundVolume

Sets the speaker volume.

Syntax:

SoundVolume (level)

Parameters:

(i) level specifies the volume level, from 0 (min) to 100 (max). specify -1 to get the current volume setting.

Returns:

(i) if level 0 to 100 it returns previous volume level. if level is -1 it returns the current volume level.

Example:


Sounds(1)
currentlevel = SoundVolume (-1)
Message("SoundVolume - Current level", currentlevel)
;lower volume 10%
level = SoundVolume (currentlevel -10)
Message("SoundVolume - Sound lowered 10%%", currentlevel -10)
;Set back to original volume
SoundVolume (currentlevel)
See Also:

Beep, PlayMedia, PlayMidi, PlayWaveForm, Sounds