I have a simple little program that loads an audio file (usually wav) and then outputs it again in flac format.
Works perfectly for shorter files, but if the input buffer is more than about 10 minutes long, the output is incorrect.
Below are 2 outputs from the code.
The only difference is that the top one is built from a 5 minute clip, and the bottom one is the same audio, but taking a longer section of it (15 minutes).
It looks like it just downsamples (grabbing every 4th sample or something). Not sure if this is a wrapper issue, or some flac thing (shouldn’t be that, but who knows).
To be clear, I read the entire file into an AudioSampleBuffer which I can then play and view. The audio in that buffer is correct regardless of input length.
It’s only when written to a longer FLAC file that it gets messed up.
In any event, would love any thoughts. Also, maybe a flac update is in the works?