shithub: sox

Download patch

ref: 6beda2fd2ef14f2165b4cf33a48fd9a7fdd9c84d
parent: 698b1a99655257417c81d4a98fffbd6df9c43c9f
author: rrt <rrt>
date: Mon Feb 2 16:20:17 EST 2009

Fix old call to SOX_SAMPLE_TO_FLOAT_32BIT.

--- a/src/ladspa.c
+++ b/src/ladspa.c
@@ -237,7 +237,7 @@
     if (l_st->input_port != ULONG_MAX) {
       /* Copy the input; FIXME: Assume LADSPA_Data == float! */
       for (i = 0; i < len; i++)
-        buf[i] = SOX_SAMPLE_TO_FLOAT_32BIT(ibuf[i]);
+        buf[i] = SOX_SAMPLE_TO_FLOAT_32BIT(ibuf[i], effp->clips);
 
       /* Connect the input port */
       l_st->desc->connect_port(l_st->handle, l_st->input_port, buf);