class Sound

Package :

(default package)

Extends :

Description :

A class to play sounds using HTML5

Attributes :

NameDescription
enabled(static) Specifies whether the sound support is currently enabled.

Methods :

new()

Creates a new Sound object.

pause()

Pausing the sound.

play()

Playing the sound.

playOnce()

Playing the sound once and then removing it. This method should be used for repetitive ambient sounds to prevent browsers from crashing.