shithub: sox

Download patch

ref: 3dd3196e458e37aadcd1ea7d878dbf6e07ac27f3
parent: e8b75b81ae94f3d5830e533ecb56d3bbb2ac7a9d
author: cbagwell <cbagwell>
date: Thu Nov 17 18:22:12 EST 2005

Allow -4 to be specified on avg effect.

--- a/Changelog
+++ b/Changelog
@@ -40,6 +40,8 @@
     Matthew Hodgson.
   o Add fix to WAV handler to only return data in multiples
     of sample_size*channels to better handle corrupt files.
+  o Fixed bug where "-4" option didn't work with avg effect.
+    (Tom Christie)
 
 sox-12.17.8
 -----------
--- a/README
+++ b/README
@@ -83,12 +83,6 @@
   o Adjust volume of samples
   o Noise elimination using frequency profiling
 
-History:
-
-This is release 12.17.8 of SoX and its companion library Sound Tools.
-SoX was originally written and maintained by Lance Norskog but is
-currently maintained by Chris Bagwell (cbagwell@users.sourceforge.net).
-
 Installing:
 
 Unless your using a pre-compiled binary version, you will need to compile
--- a/src/avg.c
+++ b/src/avg.c
@@ -79,7 +79,7 @@
             avg->mix = MIX_RIGHT_FRONT;
         else if (!strcmp(argv[0], "-3"))
             avg->mix = MIX_LEFT_BACK;
-        else if (!strcmp(argv[0], "-2"))
+        else if (!strcmp(argv[0], "-4"))
             avg->mix = MIX_RIGHT_BACK;
         else if (argv[0][0] == '-' && !isdigit((int)argv[0][1])
                 && argv[0][1] != '.') {