From 2399ea626668a39657652f52e6a71fe201fe1ee1 Mon Sep 17 00:00:00 2001 From: trialuser02 Date: Sat, 2 Jan 2016 11:06:04 +0000 Subject: fixed conflict with ladspa multiband eq (1197) plugin git-svn-id: http://svn.code.sf.net/p/qmmp-dev/code/trunk/qmmp@5957 90c681e8-e032-0410-971d-27865f9a5e38 --- src/qmmp/equ/iir_cfs.c | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) (limited to 'src') diff --git a/src/qmmp/equ/iir_cfs.c b/src/qmmp/equ/iir_cfs.c index 1f8152e65..3daeae4ff 100644 --- a/src/qmmp/equ/iir_cfs.c +++ b/src/qmmp/equ/iir_cfs.c @@ -83,7 +83,7 @@ static const double band_f031[] = #define GAIN_F1 GAIN_F0 / M_SQRT2 #define SAMPLING_FREQ 44100.0 -#define TETA(f) (2*M_PI*(double)f/bands[n].sfreq) +#define TETA(f) (2*M_PI*(double)f/iir_bands[n].sfreq) #define TWOPOWER(value) (value * value) #define BETA2(tf0, tf) \ @@ -111,7 +111,7 @@ struct { double octave; int band_count; double sfreq; -} bands[] = { +} iir_bands[] = { { iir_cf10_11k_11025, band_f011k, 1.0, 10, 11025.0 }, { iir_cf10_22k_22050, band_f022k, 1.0, 10, 22050.0 }, { iir_cforiginal10_44100, band_original_f010, 1.0, 10, 44100.0 }, @@ -210,13 +210,13 @@ void calc_coeffs() double x0; n = 0; - for (; bands[n].cfs; n++) { - double *freqs = (double *)bands[n].cfs; - for (i=0; i