summaryrefslogtreecommitdiff
path: root/audio/sox
diff options
context:
space:
mode:
authoris <is@pkgsrc.org>1997-12-17 14:19:43 +0000
committeris <is@pkgsrc.org>1997-12-17 14:19:43 +0000
commit811384d17ac3fed3c88dfab8bf939dd246ca8ebc (patch)
treedeac864dab9ac4b3b2c1a301378a08c316cc9717 /audio/sox
parent15537b72cdff58894fad01605944c0f290b53ba3 (diff)
downloadpkgsrc-811384d17ac3fed3c88dfab8bf939dd246ca8ebc.tar.gz
Make the -v (volume) option work again.
Diffstat (limited to 'audio/sox')
-rw-r--r--audio/sox/patches/patch-ae17
1 files changed, 17 insertions, 0 deletions
diff --git a/audio/sox/patches/patch-ae b/audio/sox/patches/patch-ae
new file mode 100644
index 00000000000..45f236de3bd
--- /dev/null
+++ b/audio/sox/patches/patch-ae
@@ -0,0 +1,17 @@
+--- sox.c.old Fri Oct 7 23:10:11 1994
++++ sox.c Wed Dec 17 15:12:54 1997
+@@ -444,12 +444,10 @@
+ for(e = 1; e < neffects; e++)
+ efftab[e].odone = efftab[e].olen = 0;
+
+-#ifdef later
+ /* Do volume before effects or after? idunno */
+ if (dovolume && informat.info.size != FLOAT)
+- for (i = 0; i < isamp; i++)
+- ibuffer[i] = volumechange(ibuffer[i]);
+-#endif
++ for (i = 0; i < efftab[0].olen; i++)
++ efftab[0].obuf[i] = volumechange(efftab[0].obuf[i]);
+
+ do {
+