aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorB. Watson <urchlay@slackware.uk>2024-04-13 17:02:26 -0400
committerB. Watson <urchlay@slackware.uk>2024-04-13 17:02:26 -0400
commit1917c90142299321fa2c11df8b5a38c189aceac2 (patch)
tree1569ab0f56c177d998e4fced6c5ef06a1b90b41e
parentd1f48f34e8af4842efb6952d72b9a52969e632ea (diff)
downloadsoxdial-1917c90142299321fa2c11df8b5a38c189aceac2.tar.gz
soxdial: add --stdout option.
-rwxr-xr-xsoxdial7
1 files changed, 6 insertions, 1 deletions
diff --git a/soxdial b/soxdial
index b1c6770..8a5ff79 100755
--- a/soxdial
+++ b/soxdial
@@ -86,6 +86,10 @@ output, B<.flac> for FLAC, B<.ogg> for Ogg Vorbis, or anything else
(including no extension) for raw audio samples. The special filename B<->
writes raw samples to standard output.
+=item B<--stdout>
+
+Write sox's output to standard output. Same as B<-o ->.
+
=item B<-r>, B<--rate> I<rate>
Set the bitrate in hertz (or kilohertz if followed by B<k>. Default is
@@ -642,6 +646,8 @@ for(@ARGV) {
$verbose = 1;
} elsif(/^--?stdin$/) {
read_file("-", \@newargv);
+ } elsif(/^--?stdout$/) {
+ push @newargv, "-o", "-";
} elsif(/^--?i(?:nput)?=?(.+)?$/) {
if($1) {
read_file($1, \@newargv);
@@ -663,7 +669,6 @@ for(@ARGV) {
push @newargv, $1, $2;
}
} else {
- warn "got here: $_\n";
push @newargv, $_;
}
}