shithub: sox

Download patch

ref: 3bf0b367f26d61e8e1c6cd2bd6a0acad08d2adc7
parent: 9d742e2840dacfffe8ecda3ef25ed6aa7974ac6b
author: cbagwell <cbagwell>
date: Mon Sep 10 09:55:07 EDT 2001

Have sox stop reading in data if no effects and not writing.

--- a/src/sox.c
+++ b/src/sox.c
@@ -727,6 +727,13 @@
 
         efftab[0].odone = 0;
 
+	/* If not writing and no effects are occuring then not much
+	 * reason to continue reading.  This allows this case.  Mainly
+	 * useful to print out info about input file header and quite.
+	 */
+	if (!writing && neffects == 1)
+	    efftab[0].olen = 0;
+
         if (efftab[0].olen == 0)
 	    break;