Skip to main content
A playback instance returned by Audio:play*, with controls for transport and volume.

Fields

volume

volume of the sound.

Methods

stop

Stops the audio, fading out over fadeToStopTime PCM frames. Omit it to stop at once.

seek

Seeks the audio to a specific time in seconds. Returns false when the sound was disposed or the seek failed.

seekFrame

Seeks the audio to a specific time in PCM frames. Returns false when the sound was disposed or the seek failed.

completed

Whether the sound has completed playing.

time

Current sound time in seconds.

timeFrame

Current sound time in PCM frames.

pause

pauses the audio.

resume

resumes the audio from its current position.

play

plays the audio.