From 86a6bb43dec14a63f722818f72c855807832fef4 Mon Sep 17 00:00:00 2001 From: "B. Watson" Date: Wed, 10 Apr 2024 16:21:18 -0400 Subject: soxdial: do not play anything for a dial string if there are no valid digits. --- soxdial | 2 ++ 1 file changed, 2 insertions(+) diff --git a/soxdial b/soxdial index e445d55..7726c8a 100755 --- a/soxdial +++ b/soxdial @@ -430,6 +430,8 @@ sub add_bluebox_digit { # --norm is needed because otherwise, the volume decreases as the number of # digits (tones for "synth") goes up. --norm=-3 helps avoid clipping. sub make_sox_subcmd { + return ":" unless @freqs1; + my $length = shift || $digittime; my $cmd = "sox -n -b$bits $encoding -r$rate -c1 -traw - --norm=-3 "; my $synth = " synth $length "; -- cgit v1.2.3