Skip to content

Methods

Farshad Javan edited this page Dec 17, 2019 · 2 revisions

dAudio has a very small amount of standard and useful methods:

play()

Starts playing from the beginning or resumes the playback if you have paused before.

audio.play();

pause()

Pauses the playback at the current time if it is playing.

audio.pause();

stop()

Stops the sound and resets the current time to the beginning. Same action if the sound is playing or paused.

audio.stop();

playPause()

Toggles between play() and pause() methods.

audio.playPause();
Clone this wiki locally