shithub: sox

Download patch

ref: 8a98c46a1fce477cdd0ddf0f17938d01702a0d8f
parent: 788e9abe05be565060286f9ee1a9cbd7ed18d367
author: robs <robs>
date: Sat Dec 20 11:29:58 EST 2008

--ignore-length

--- a/src/sox.c
+++ b/src/sox.c
@@ -2520,7 +2520,9 @@
   }
   if (ofile->volume != HUGE_VAL)
     usage("-v can be given only for an input file;\n"
-            "\tuse `vol' to set the output file volume");
+            "\tuse the `gain' or `vol' effect to set the output file volume");
+  if (ofile->signal.length != SOX_UNSPEC)
+    usage("--ignore-length can be given only for an input file");
 
   signal(SIGINT, SIG_IGN); /* So child pipes aren't killed by track skip */
   for (i = 0; i < input_count; i++) {