Song : Base

Class

Unlike with Sound, this actually has something inside. Also, this is like the shittiest name ever made. But hey, Audio was picked, so, what can we do?

Members


path

path : String

The path to your audio file.


loops

loops : Boolean

When true, it will keep looping until the end of days.


Methods


constructor

constructor (path, loop)

Path: an string, path to your sound. Loop: boolean flag. True to make it loop.


play

play ()

pause

pause ()

stop

stop ()

setVolume

setVolume (value)