$ sox foo.wav foo.sds
# foo.sds will be an invalid SDS file.
I've been working with the author of libsndfile to fix its SDS (MIDI Sample Dump Standard) generation. I believe the latest version of libsndfile (1.0.22) does it correctly.
The authors of sox may find it useful to get the latest libsndfile and run 'sndfile-convert blah.wav blah.sds' and compare that output with sox's.
Basically, in the output generated by sox, the 'number of samples' field in the header is wrong. Also, the data packets are missing a '0x02' byte. Also, the checksums on each packet are wrong.
If you have any questions, please mail me at email@example.com. Thanks.