GetVolume()

Syntax:

GetVolume( Device,Channel )

Return:

The current volume setting of the device as a percentage.

Parameters:

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

Channel – the name of the channel you want to set. This only applies if Device is "Wave". This parameter is not required. The default value is -1 which gets the master wave volume.

Remarks:

This function will get the current volume level for the specified device.

image\Script_Button.jpgExamples

 

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