diff options
-rwxr-xr-x | soxdial | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -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, $_; } } |