diff options
author | B. Watson <urchlay@slackware.uk> | 2024-04-13 17:02:26 -0400 |
---|---|---|
committer | B. Watson <urchlay@slackware.uk> | 2024-04-13 17:02:26 -0400 |
commit | 1917c90142299321fa2c11df8b5a38c189aceac2 (patch) | |
tree | 1569ab0f56c177d998e4fced6c5ef06a1b90b41e | |
parent | d1f48f34e8af4842efb6952d72b9a52969e632ea (diff) | |
download | soxdial-1917c90142299321fa2c11df8b5a38c189aceac2.tar.gz |
soxdial: add --stdout option.
-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, $_; } } |