play
audio.play()
Plays a sound. You can choose if it should loop.
audio.play(audio, loop)
audio
HtmlAudioElement
Audio object created with audio.newAudio(path)
. This object is used to control playback, volume, position, etc.
loop
Boolean
Indicates whether the audio should loop continuously when it reaches the end.