ref: 841ca652e1cc3b54d3771070354ec26291dc8d67
parent: 854be953b48841e3da5db8b17fade34294136c9d
author: robs <robs>
date: Sun Jun 28 12:06:41 EDT 2009
issuing sox usage instructions from within libsox is inappropriate
--- a/soxformat.7
+++ b/soxformat.7
@@ -615,7 +615,13 @@
options will cause a format conversion, and the \fB.wav\fR
will written appropriately.
.SP
-SoX can read and write PCM, \(*m-law, A-law, MS ADPCM, and IMA (or DVI) ADPCM.
+SoX can read and write linear PCM, \(*m-law, A-law, MS ADPCM, and IMA (or DVI) ADPCM.
+WAV files can also contain audio encoded in many other ways (not currently
+supported with SoX) e.g. MP3; in some cases such a file can still be
+read by SoX by overriding the file type, e.g.
+.EX
+ play -t mp3 mp3-encoded.wav
+.EE
Big endian versions of RIFF files, called RIFX, are also supported.
To write a RIFX file, use the
.B \-B
--- a/src/wav.c
+++ b/src/wav.c
@@ -406,7 +406,7 @@
static int wavfail(sox_format_t * ft, const char *format)
{
- lsx_fail_errno(ft, SOX_EHDR, "Unhandled WAV file encoding (%s).\nTry overriding the encoding: e.g. for an MP3 WAV, `-t mp3'", format);
+ lsx_fail_errno(ft, SOX_EHDR, "WAV file encoding `%s' is not supported", format);
return SOX_EOF;
}