Web Audio API examples: decodeAudioData() with callback

Set playback rate

1.0

Set loop start and loop end

0 0

If the stop time is lower or equal to the start time, it'll loop over the whole track.