Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FlacAudioFileReader (spi) reads Flac files with invalid values #7

Open
1nikolas opened this issue Jul 2, 2020 · 1 comment
Open

Comments

@1nikolas
Copy link

1nikolas commented Jul 2, 2020

Hello. I'm using spi on my project and when I try to read a Flac file with FlacAudioFileReader, framerate and bytes/frame is -1. The read format is this FLAC 44100.0 Hz, 16 bit, 2 channels, -1 bytes/frame, -1.0 frames/second
I tried many flac files and got the same result. Am I doing something wrong? Thanks

@drogatkin
Copy link
Owner

If you check

protected AudioFileFormat getAudioFileFormat(InputStream bitStream, int mediaLength) throws UnsupportedAudioFileException, IOException {
then you find that these values are calculated when OGG header presented. You can add an implementation for other cases too. Let me know.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants