I am creating an application to play an audio file (WAV).
Playback works out perfectly, I did a small feature to make a forward "leap" of X (seconds) via the skip() method of audioInputStream and this also works perfectly.
My problem is to achieve the backward "leap" X (seconds). I use again the skip() method with a negative number, it works. But then the audio file doesn't read the end of the file I am losing the X (seconds) at the end, my playback stops and my reference audioInputStream.read returns -1 as if my playback was finished but it actually did not.