-
Notifications
You must be signed in to change notification settings - Fork 269
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
Flac files return empty sample buffers #170
Comments
Thank you @richardmitic! I've been able to reproduce this in a test, and local tests so far seem to show that the return code of the I'll try the simplest thing first: bumping JUCE versions, as the newest version of JUCE includes a version bump of the FLAC library itself. |
Quick update: I've tracked this down to a very small bit of code in JUCE's |
Excellent work! Thanks for tracking it down. |
Seeking to certain positions within certain flac files makes
ReadableAudioFile.read()
return sample buffers of all zeros.Here is a file + code that triggers the bug:
sine_stereo_0.flac
The file was created by generating a sine wave with ffmpeg and encoding with the flac reference encoder at compression level 0. Compression levels 1 and 2 will produce a file that fails in exactly the same way.
For comparison, here's a file that can be read without problems. It was created in the same way but uses compression level 3 instead.
sine_stereo_3.flac
The text was updated successfully, but these errors were encountered: