Natively read WAV files with bit-depths other than 8/16/24/32 #527
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Natively read WAV files with bit-depths other than 8/16/24/32
Description
You can create WAV files with unusual bit-depths using
but SoX fails to read anything other than the 8, 16, 24 and 32-bit ones.
sox -t sndfileandsox_ng -t ffmpegsucceed on all of them.Analysis
Bit-depths 1 to 7
It says
and exits 2.
Bit-depths 9-15, 17-23 and 25-31
It says
and exits 0 having created an
out.wavof 44 bytes for 1-15 or 80 bytes for 17-31.The message
this handler does not support this data sizecomes fromraw.c,which
wav.cuses to read the data, andraw.conly supports 8/16/24/32.Conclusion
There are two issues here: