Atlantis.AudioManager Class
An audio manager to play sound and musics.
Constructor
Atlantis.AudioManager
()
Item Index
Methods
Methods
pauseMusic
()
Pause the current played music.
playMusic
(
-
music
-
repeat
Play a music.
Parameters:
-
music
AudioElementAn HTML Audio Element that contains the music.
-
repeat
BooleanSets to true for enable repeat.
playOneShot
()
Play a sound or a music one time
resume
()
Resume a paused music.
stopMusic
()
Stop the current played music.