Returns the set duration to play, otherwise returns the total duration if unset
Set the duration that this audio should play.
Note: if you seek to a specific point the duration will start from that point, for example
If you have a 10 second clip, seek to 5 seconds, then set the duration to 2, it will play the clip from 5-7 seconds.
Whether the audio should loop (repeat forever)
Whether the audio should loop (repeat forever)
Set the playbackRate, default is 1.0 at normal speed. For example 2.0 is double speed, and 0.5 is half speed.
Set the playbackRate, default is 1.0 at normal speed. For example 2.0 is double speed, and 0.5 is half speed.
The volume (between 0 and 1)
The volume (between 0 and 1)
Internal class representing a Web Audio AudioBufferSourceNode instance
See
https://developer.mozilla.org/en-US/docs/Web/API/Web_Audio_API