shithub: sox

Download patch

ref: 23d114c455a7204f0bb9001ba682d01654549657
parent: d199d3c5b7f5c49ac62b8f46ca22f29ac1c2fdc8
author: cbagwell <cbagwell>
date: Sat Feb 12 12:58:14 EST 2011

Fix -w option on stats.

--- a/ChangeLog
+++ b/ChangeLog
@@ -39,6 +39,7 @@
 Effects:
 
   o F.R. [3051700] spectrogram -r for `raw' spectrogram, no legend.  (robs)
+  o Fix -w option on stats effect. (Ronald Sprouse)
 
 Other new features:
 
--- a/src/stats.c
+++ b/src/stats.c
@@ -37,7 +37,7 @@
 
   p->time_constant = .05;
   p->scale = 1;
-  while ((c = lsx_getopt(argc, argv, "+x:b:t:s:")) != -1) switch (c) {
+  while ((c = lsx_getopt(argc, argv, "+x:b:w:s:")) != -1) switch (c) {
     GETOPT_NUMERIC('x', hex_bits      ,  2 , 32)
     GETOPT_NUMERIC('b', scale_bits    ,  2 , 32)
     GETOPT_NUMERIC('w', time_constant ,  .01 , 10)