ref: ae555c6c82df79e75cbeb91018c0a00f2acfa9f0
parent: 6c2f8c4091d1dea02adef9cd2fd62b9cccca245e
author: robs <robs>
date: Sun Feb 8 05:24:02 EST 2009
pipe rewind ramifications
--- a/sox.1
+++ b/sox.1
@@ -571,7 +571,8 @@
and which,
if used in place of the output filename, will cause
SoX will send audio data to `standard output' (stdout).
-Note that when using this option, the file-type (see
+Note that when using this option for the output file, and sometimes
+when using it for an input file, the file-type (see
.B \-t
below) must also be given.
.TP
@@ -585,17 +586,12 @@
standard output, then the following command makes a stereo file
from two generated signals:
.EX
- sox -M -t wav "|genw --imd -" -t wav "|genw --thd -" out.wav
+ sox -M "|genw --imd -" "|genw --thd -" out.wav
.EE
-If
+For headerless (raw) audio,
.B \-t
-is not given then the signal is assumed (and checked) to be in SoX's
-native
-.B .sox
-format (see
-.B \-p
-below and
-.BR soxformat (7)).
+(and perhaps other format options) will need to be given, preceding the input
+command.
.TP
\fB\(dq\fIwildcard-filename\fB\(dq\fR
Specifies that filename `globbing' (wild-card matching) should be performed
--- a/src/formats.c
+++ b/src/formats.c
@@ -464,7 +464,7 @@
}
else {
if (ft->io_type == lsx_io_pipe) {
- filetype = "sox";
+ filetype = "sox"; /* With successful pipe rewind, this isn't useful */
lsx_report("assuming input pipe `%s' has file-type `sox'", path);
}
else if (!(filetype = lsx_find_file_extension(path))) {