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

stop the audio

seek

seek the audio to a specific time in seconds.

seekFrame

seek the audio to a specific time in PCM frames.

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.