Module: siteKiosk.system.audio

This module provides functions to set and get the audio volume of the device. Note that the volume can be set per channel rather than global.

Example

//increase the volume of channel 2

var channel = 2;

var oldVolume = siteKiosk.system.audio.getVolume(channel);

siteKiosk.system.audio.setVolume(oldVolume+1);

Methods

<static> getVolume(channel) → {number}

Gets the volume of the specified channel.
Parameters:
Name Type Description
channel number The channel name
Returns:
The volume of the specified channel
Type
number

<static> setVolume(volume, channel)

Sets the volume of the specified channel.
Parameters:
Name Type Description
volume number The volume of the specified channel
channel number The channel name