[LAU] Need help salvaging a recording

Shani Hadiyanto Pribadi shanipribadi at gmx.net
Fri Apr 23 13:39:32 UTC 2010

> Erik de Castro Lopo wrote:
> New program called sndfile-salvage here:
>    http://www.mega-nerd.com/tmp/sndfile-salvage.c

It works great for fixing my file. Faster than doing it manual too :-)
Something weird though, doing a diff between the file from
sndfile-salvage and the one I fixed using sox says that they both
The file size is identical, and the first 10MBs of the file is exactly
the same. But when I diff the hexdump from around the middle of the
I noticed something. There are blocks of 0001 80bf on the file fixed
using sndfile-salvage while the one I fixed using sox has blocks of
0000 80bf.
Since it's little endian it would be read (i think) 0xbf800000 and
0xbf800001, the difference on the mantissa is only 1, so I guess
there wouldn't be any difference soundwise. Just curious though how
come the two file differ that way.

Anyway, thank you very much for your help and for spending time to
make this utility.

Shani H Pribadi

More information about the Linux-audio-user mailing list