Libaudiofile in this version produces wrong length information in the data and RIFF chunk of wav files because it internally uses the data type "float" for length calculations, with loss of precision. Reproducible: Always Steps to Reproduce: 1. create a wav file with 77.777.777 frames, 8 bit/sample, stereo 2. check the length written in the RIFF and data chunk, it will be wrong I already filed a bug report and a patch to ubuntu launchpad, see: https://bugs.launchpad.net/ubuntu/+source/audiofile/+bug/327018
did you try 0.2.6-r4 ?
now yes, media-libs/audiofile-0.2.6-r4 behaves exactly the same.
http://launchpadlibrarian.net/22320508/audiofile-no-float.diff
Won't that patch just fail if you tack more decimals on the end? Or is there some format restriction that keeps that from happening?
try 0.2.7 for update
I tested with v0.2.7 and was not able to reproduce the bug with the size mentioned above. I also tested several other chunk sizes that are not representable in a "float", like (2^24 - 1) and around, but everything worked fine. From my point of view we could set this bug to "resolved".