SetVolume()

Syntax:

SetVolume( Device,Volume,Fade,Channel )

Parameters:

Device – the name of the device for which you want to change the volume. The device names are: "Wave", "Midi", "CD". The device name must be surrounded by quotes. This parameter is required.

Volume – set the volume of the device as a percentage. Volume must be a number between 0 (no volume) to 100 (full volume). This parameter is required.

Fade – the time over which the volume should fade in seconds. If no channel is set, then a value is not required.

Channel – adjust the channel the sound file is playing on. This only applies to wave files, which have been set to play on a particular channel (see PlaySound action for details on channels). The default value is -1, which is master wave volume.

Remarks:

This function will set the volume level for the specified device.

image\Script_Button.jpgExamples

see also:SetVolume (Sound object), GetVolume (device), GetVolume (Sound object)