Duration of the sample, in seconds. Please note it may be nan if unknown or inf if infinite looping. You should check for both conditions.
If the sample has finished playing. Happens when it runs out or if it is stopped.
Pauses playback, keeping its position. Use resume to pick up where it left off.
If the sample has been paused.
Controls the playback speed of this particular sample, as a multiplier of its original speed. Setting it to 0.0 is liable to crash.
Controls the playback speed of this particular sample, as a multiplier of its original speed. Setting it to 0.0 is liable to crash.
Reports the current stream position, in seconds, if available (NaN if not).
Resumes playback after a call to pause.
Seeks to a point in the sample, if possible. If impossible, this function does nothing.
Stops playback. Once stopped, it cannot be restarted except by creating a new sample from the AudioOutputThread object.
Controls the volume of this particular sample, as a multiplier of its original perceptual volume.
Provides an interface to control a sound.
All methods on this interface execute asynchronously