Construct a Sound
that can be used to play back the given audio file. The sound can be used
immediately, but playback may be silent until enough audio data has been buffered.
SphereFS path of an audio file.
Duration of this sound, in seconds.
true
if the sound is currently playing; false
otherwise.
Pause playback of this sound. It can be resumed later by calling play()
without a mixer.
Play the sound on a given mixer. If the sound is paused and a mixer is not specified, resume playback from the paused position.
The mixer used to play back the sound.
Stop playback of this sound.
Open an audio file in the background and construct a Sound
that can be used to play it.
SphereFS path of an audio file.
A promise for the newly constructed Sound
.
Generated using TypeDoc
Represents an audio clip optimized for streaming playback.