setToLoop
Creates a copy of this AudioModifier configured for looping playback.
Return
A new AudioModifier instance configured for looping playback.
Parameters
startPosition
The position (in frames) to start looping from. If null, loops from the beginning.
endPosition
The position (in frames) to end looping at. If null, loops until the end of the audio.