summaryrefslogtreecommitdiff
path: root/audio/sox/patches/patch-ab
blob: 14a7fd4c62dfea6df50ddfda4df624fb40b5ab2a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
$NetBSD: patch-ab,v 1.8 2005/07/09 16:05:16 kristerw Exp $

--- src/noisered.c.orig	Sat Jul  9 18:01:23 2005
+++ src/noisered.c	Sat Jul  9 18:01:52 2005
@@ -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);