sound.js contains methods necessary to play a URL containing a sound file
Method Summary | |
int |
getVolumeLevel()
Obtains the current system audio volume level |
boolean |
playSoundAsync(java.lang.String url)
Plays a WAV file specified by the URL |
boolean |
setVolumeLevel(byte level)
Sets the current system audio volume level |
Method Detail |
public boolean playSoundAsync(java.lang.String url)
url
- The WAV filename to play
Host Application | N/A |
Host Applet | SoundHostApplet |
Flow | The host applet will use the Applet AudioClip functionality to play the specified URL |
public int getVolumeLevel()
Host Application | com.ibm.retail.saf.wata.host.settings.SettingsAgentManager |
Host Applet | SettingsApplet |
Flow | Uses: set (level) os/sound/volume.percent |
public boolean setVolumeLevel(byte level)
level
- The percentage to set the volume level
Host Application | com.ibm.retail.saf.wata.host.settings.SettingsAgentManager |
Host Applet | SettingsApplet |
Flow | Uses: get os/sound/volume.percent |