diff options
author | B. Watson <urchlay@slackware.uk> | 2024-04-10 16:21:18 -0400 |
---|---|---|
committer | B. Watson <urchlay@slackware.uk> | 2024-04-10 16:21:18 -0400 |
commit | d876d6cf73e2f091589b137bc6b119e2ea4a6635 (patch) | |
tree | dd3f12461a523afd45896615260bc3bc5b523757 | |
parent | 688965012bff2cd494d9b7cbb053def5d5829c94 (diff) | |
download | misc-scripts-d876d6cf73e2f091589b137bc6b119e2ea4a6635.tar.gz |
soxdial: do not play anything for a dial string if there are no valid digits.
-rwxr-xr-x | soxdial | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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 "; |