SetVolume()

Syntax:

SetVolume( Volume, Fade )

Parameters:

Volume – set the volume of the Sound object 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. Fade must be a number. The default value is set to 0 (zero).

Remarks:

This function will set the volume level for the specified Sound object. It allows you to change the volume of a sound on a specific channel. Please note, all sounds on a particular channel will be affected by this function call. The function has been added here for your convenience.

image\Script_Button.jpgExamples

 

see also: SetVolume (device), GetVolume (device), GetVolume (sound Object)