aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorB. Watson <urchlay@slackware.uk>2024-04-09 14:33:36 -0400
committerB. Watson <urchlay@slackware.uk>2024-04-11 16:52:48 -0400
commit4215ebc4f1b760abd3980d4413cf86be084f74df (patch)
tree2a7c3313e7f1a5cf650ae27c566be552cc058c41
parent348c68f6c1f997d816ccc5fbdc14313dffca42fa (diff)
downloadsoxdial-4215ebc4f1b760abd3980d4413cf86be084f74df.tar.gz
soxdial: add -Y/--no-random.
-rwxr-xr-xsoxdial7
1 files changed, 7 insertions, 0 deletions
diff --git a/soxdial b/soxdial
index 924c958..0de46c9 100755
--- a/soxdial
+++ b/soxdial
@@ -83,6 +83,11 @@ Randomize the timing. Digit length (B<-l>), inter-digit timing
specified. This does a pretty good impression of a human dialling a
number manually.
+=item B<-Y>, B<--no-random>
+
+Disable randomized timing. This is the default; this option exists
+to turn off a prior B<-X>, B<--random> option.
+
=item B<-S>, B<--stereo>
Output stereo audio. The left and right channels will contain the same
@@ -532,6 +537,8 @@ for ($argc = 0; $argc < @ARGV; $argc++) {
} elsif(/^--?(?:X|random)$/) {
# sorry I had to use -X for this, -R was already taken.
$random = 1;
+ } elsif(/^--?(?:Y|no-random)$/) {
+ $random = 0;
} elsif(/^--?f(?:ast)?$/) {
$intertime /= 2;
$digittime /= 2;