jflac icon indicating copy to clipboard operation
jflac copied to clipboard

unknown frame size, unknown frame rate

Open mvmn opened this issue 5 years ago • 1 comments

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?

mvmn avatar Dec 14 '19 09:12 mvmn

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:

nguillaumin avatar Dec 15 '19 21:12 nguillaumin