Back

GetVolume

Hello World

Returns the volume level of a given audio type as a number between 0 and 1.

app.GetVolume( stream ) → number: fraction (0..1)

By default the “System” volume is returned.

See Also: SetVolume

Example - Get System Volume

function OnStart()
{
    var vol = app.GetVolume();
    app.Alert( vol, "System Volume:" );
}
    Copy     Copy All       Run      
string: “alarm” or “dtmf” or “music” or “notification” or “ring” or “system” or “voicecall”