when using Flac2PcmAudioInputStream, a reading thread goes into an infinite loop while attempting to read, in RingedAudioInputStream.read().
The cause was that when entering the read method, the code looked at frame.getFrameLength(), which in some cases might return a -1 value.
AudioInputStream's constructor tries to get the proper size, and if it finds an AudioSystem.NOT_SPECIFIED size, it sets the frame size to 1.
So i made a fix in RingedAudioInputStream.read(), where now getFrameLength() gets called rather then frame.getFrameLength().
when using Flac2PcmAudioInputStream, a reading thread goes into an infinite loop while attempting to read, in RingedAudioInputStream.read(). The cause was that when entering the read method, the code looked at frame.getFrameLength(), which in some cases might return a -1 value. AudioInputStream's constructor tries to get the proper size, and if it finds an AudioSystem.NOT_SPECIFIED size, it sets the frame size to 1.
So i made a fix in RingedAudioInputStream.read(), where now getFrameLength() gets called rather then frame.getFrameLength().