Create a new audio-track from a audio-element or create a new one from an URL
WARNING: Local files with file:///
protocol are not supported (cross-origin error). To load local files please load them with FileReader and convert them into Base64.
Get loop status of the current track
Enable/Disable the loop feature of the current track
Get mute status of the current track
Enable/Disable the mute feature of the current track
Check if the current track is paused.
Check if the current track is playing.
Get the current time (in seconds) of the track.
Set the current time (in seconds) in of the current track. Use this property to forward or backward the audio.
Get the volume of the current track (from 0 to 1)
Set the volume of the current track (from 0 to 1)
Connect the track output to a channel input.
Pause the current audio and resume it with play() method.
Play the current audio from the last time value. Use stop() to start from the beginning or pause() to resume the audio.
Pause the current audio track and set time to 0, playing audio from the start again with play() method.
Generated using TypeDoc
Creates a new audio instance compatible with the AudioChannel class. Anyways, you will able to control the final audio-source (playing, pause, loop, etc.)