From 2f7df4a803ebb451d5f7a1ef765220a189cb7d6b Mon Sep 17 00:00:00 2001 From: Lioncash Date: Sat, 30 Aug 2014 21:04:09 -0400 Subject: [PATCH] AudioCommon: Declare iterator variable in loop body in DPL2Decoder --- Source/Core/AudioCommon/DPL2Decoder.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/Source/Core/AudioCommon/DPL2Decoder.cpp b/Source/Core/AudioCommon/DPL2Decoder.cpp index 17b74ea85b..680d193c45 100644 --- a/Source/Core/AudioCommon/DPL2Decoder.cpp +++ b/Source/Core/AudioCommon/DPL2Decoder.cpp @@ -7,6 +7,7 @@ // * Copyright (c) 2004-2006 Milan Cutka // * based on mplayer HRTF plugin by ylai +#include #include #include #include @@ -14,6 +15,7 @@ #include #include "AudioCommon/DPL2Decoder.h" +#include "Common/CommonTypes.h" #include "Common/MathUtil.h" #ifndef M_PI @@ -90,11 +92,10 @@ static T FIRFilter(const T *buf, int pos, int len, int count, const float *coeff */ static void Hamming(int n, float* w) { - int i; float k = float(2*M_PI/((float)(n-1))); // 2*pi/(N-1) // Calculate window coefficients - for (i=0; i> 1) - o; // Loop end - unsigned int i; // Loop index float k1 = 2 * float(M_PI); // 2*pi*fc1 float k2 = 0.5f * (float)(1 - o); // Constant used if the filter has even length @@ -154,7 +154,7 @@ static float* DesignFIR(unsigned int *n, float* fc, float opt) } // Create filter - for (i=0 ; i