shithub: sox

Download patch

ref: 760b5bd89d5d3d8e94b5fef9fc8127dba7cf747e
parent: 8de54df09bdcce676c59651ba9e6661ad2ad5d85
author: robs <robs>
date: Sun Dec 10 02:48:01 EST 2006

Fix synth size when followed by another effect.

--- a/src/sox.c
+++ b/src/sox.c
@@ -1286,7 +1286,7 @@
           flowstatus  = flow_effect(e);
           if (flowstatus == ST_EOF)
           {
-              input_eff = e+1;
+              input_eff = e;
               /* Assume next effect hasn't reach EOF yet */
               input_eff_eof = 0;
           }
--- a/src/tests.sh
+++ b/src/tests.sh
@@ -87,7 +87,7 @@
 channels=1 
 do_singlechannel_formats
 
-./sox -c 1 -n output.ub synth .01 sine
+./sox -c 1 -n output.ub synth .01 vol .5
 if [ `wc -c <output.ub` = 441 ]; then
   echo "ok     synth size"
 else