Manages loading and playback of an audio file.
new Sound(audioManager, src, label, onReady);audioManager—AudioManagerThe audio manager that will parent this Sound.src—stringThe source of the audio.label—stringThe unique label to identify this sound.onReady—functionAn optional method to call when the audio file is ready to play. Passed the sound object.
Get the audio's playback rate.
Set the audio's playback rate.
Get the volume of playback.
Set the volume of playback.
value—numberThe volume level to set. Must be between 0 and 1.
Get whether the audio is playing.
Get the mute state of the audio.
Get the loop value of the audio element.
Set the loop value of the audio element.
value—booleanThe loop state to set.
Mute the audio without stopping playback.
Begin audio playback.
config—ObjectPlayback configuration data.allowConcurrentPlayback—booleanWhether to allow the sound to be played, even if it is already playing.volume—numberOptionally overwrite the current volume level before playing.loop—booleanWhether to loop audio playback.
Stop audio playback.