shithub: sox

Download patch

ref: 9290f6558259090c1bae1703871b271e219cfb73
parent: fc15f7f570f412df4292290a9e70fac188ce45ab
author: robs <robs>
date: Sat Nov 18 13:22:38 EST 2006

Fix deemph block size error.

--- a/Changelog
+++ b/Changelog
@@ -38,6 +38,9 @@
   o Fix broken audio when using synth as follows:
     sox -t nul /dev/null -c 1 output.wav synth 1 sine
     (robs)
+  o Fix broken audio when using deemph as follows:
+    sox -t nul /dev/null -c 1 output.wav synth 1 sine deemph
+    (robs)
 
 sox-12.18.2
 -----------
--- a/src/deemphas.c
+++ b/src/deemphas.c
@@ -206,6 +206,7 @@
                     deemph->lastout + 0.5 :
                     deemph->lastout - 0.5;
      }
+     *isamp = *osamp = len;
      return (ST_SUCCESS);
 }