ref: 5c55ce9fdcbec4b08785337edea5a941d72b0c1b
parent: 105e2bc5e35b1b747b8a93da398ae34cac0a5dde
author: cbagwell <cbagwell>
date: Tue Dec 21 11:39:35 EST 2004
fix compile problem in noisered.
--- a/Changelog
+++ b/Changelog
@@ -4,6 +4,10 @@
This file contains a list of all changes starting after the release of
sox-11gamma.
+sox-12.17.8
+-----------
+ o noisered effect had compile problems with some compilers.
+
sox-12.17.7
-----------
o Christian Weisgerber sent patches to man page fixes
--- a/src/noiseprof.c
+++ b/src/noiseprof.c
@@ -182,8 +182,8 @@
int i;
for (i = 0; i < effp->ininfo.channels; i ++) {
- chandata_t* chan = &(data->chandata[i]);
int j;
+ chandata_t* chan = &(data->chandata[i]);
fprintf(data->output_file, "Channel %d: ", i);
--- a/src/noisered.c
+++ b/src/noisered.c
@@ -41,8 +41,8 @@
reddata_t data = (reddata_t) effp->priv;
if (n > 2 || n < 1) {
- st_fail("Usage: noiseprof profile-file [threshold]");
- return (ST_EOF);
+ st_fail("Usage: noiseprof profile-file [threshold]");
+ return (ST_EOF);
}
data->threshold = 0.5;
data->profile_filename = argv[0];
@@ -133,10 +133,9 @@
float *power = (float*)calloc(WINDOWSIZE, sizeof(float));
float *smoothing = chan->smoothing;
static int callnum = 0;
+ int i;
callnum ++;
-
- int i;
for (i = 0; i < FREQCOUNT; i ++) {
assert(smoothing[i] >= 0 && smoothing[i] <= 1);