jflac
jflac copied to clipboard
unknown frame size, unknown frame rate
When using jflac for decoding flac files code like AudioSystem.getAudioFileFormat(inputFile).getFormat() returns format with "unknown frame size, unknown frame rate". This prevents playback with this format and conversion of this format via javax.sound.sampled APIs.
Why is the frame size deemed unknown though? If instead of obtaining format I obtain AudioInputStream, this returns proper value via audioInputStream.getFrameLength(), albeit long.
But audioInputStream.getFormat().getFrameSize() returns -1. How come?
Hi, to be honest I don't know, I didn't write this code. But if you find out why and can provide a fix, I'll be glad :wink: