From 1917c90142299321fa2c11df8b5a38c189aceac2 Mon Sep 17 00:00:00 2001 From: "B. Watson" Date: Sat, 13 Apr 2024 17:02:26 -0400 Subject: soxdial: add --stdout option. --- soxdial | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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 Set the bitrate in hertz (or kilohertz if followed by B. 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, $_; } } -- cgit v1.2.3