mewkiz/flac

Slight audio playback issues with some flac files depending on header block size?

mehrvarz opened this issue · 5 comments

Hi. Some of my flac files don't play back perfectly. The issue appears to depend on the block size in the header.
blockSize=12 results in frame.BlockSize=4096 which plays back perfectly.
blockSize=5 results in frame.BlockSize=4608 which comes out slightly scrambled.
Any idea what could be causing this? Thank you.

Could you provide an example FLAC file that we may try to reproduce the issue with? Thanks!

/u & _

@mehrvarz Are the files you noticed issues with different from the ones reported in #30? If so, please upload a sample

The blockSize=5 flac files I own are most likely signed. Can't share those. I'll find alternative flac files with identical attributes and let you know.

Hi, I was able to solve this issue. If you are interested, pls take a look at gordonklaus/portaudio#23 and find the post (from 15 minutes ago) where I mention "unusual header block sizes". I think we can close this :-)

Hi, I was able to solve this issue. If you are interested, pls take a look at gordonklaus/portaudio#23 and find the post (from 15 minutes ago) where I mention "unusual header block sizes". I think we can close this :-)

Lovely to hear. I'll close this issue. Feel free to open a new issue if something else seems amiss with the flac decoding. And thanks for reporting!