summaryrefslogtreecommitdiff
path: root/audio/sox/files/patch-src_noisered.c
blob: c8dd2d57ceb88b88b59dd67f37b7a6279e1d0660 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
$FreeBSD$

--- src/noisered.c.orig
+++ src/noisered.c
@@ -126,6 +126,7 @@
  * due to overlapping windows. */
 static void reduce_noise(chandata_t* chan, float* window, float level)
 {
+    int i;
     float *inr   = (float*)calloc(WINDOWSIZE, sizeof(float));
     float *ini   = (float*)calloc(WINDOWSIZE, sizeof(float));
     float *outr  = (float*)calloc(WINDOWSIZE, sizeof(float));
@@ -135,8 +136,6 @@
     static int callnum = 0;
 
     callnum ++;
-
-    int i;
 
     for (i = 0; i < FREQCOUNT; i ++) {
         assert(smoothing[i] >= 0 && smoothing[i] <= 1);