Using several Intel Pentium I and III platforms running basically Slackware 10.x Linux installations, running either GCC 4.1.0 (and possibly 3.x.x) along with Linux kernel v2.6.x, SoX v14.0.0 fails to read .wav files, and instead exits with an error:
play soxio: Failed reading `psk.wav': Could not find data chunk.
SoX seems to process .au and .mp3 files without a problem.
Suspecting this might be a .wav file issue, I used the "rec" command to generate a sample .wav file that the "play" command cannot read:
rec -r 44100 test.wav
play soxio: Failed reading `test.wav': Could not find data chunk.
The monkey.wav file produces the same error.
I tried commenting out the data chunk "if" check on or about line 816 in src/wav.c. This allowed SoX to read the file and display data size information, but the program quickly exits after this without reading the file any further.
So, the error trap appears to be working properly, but the "len" or the "dwDataLength" variables might be in error, causing the program to exit prematurely.
No previous versions of SoX I've used in the past suffered from this problem.
Log in to post a comment.