Is there a way, using Java, that I can have an audio file(of any format, whichever can work for this), that is played, starting from the beginning, up until x samples have been played, then continues playing until y samples have been played, then loops the audio back to x samples?
Or if samples could be expressed as time/seconds that would also work. Is there a way to do this? I'm hoping to use this to play an intro to a background song, then loop it excluding the intro.