aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortrialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38>2015-09-10 19:55:40 +0000
committertrialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38>2015-09-10 19:55:40 +0000
commit728514438db1abc8da110012a65af447d99f93c2 (patch)
tree02684e583a9fc1d31182abbc6db1fac0fde3979d
parent982df3c009d4c7b86aab4c472fd6fb0e31272d22 (diff)
downloadqmmp-728514438db1abc8da110012a65af447d99f93c2.tar.gz
qmmp-728514438db1abc8da110012a65af447d99f93c2.tar.bz2
qmmp-728514438db1abc8da110012a65af447d99f93c2.zip
fixed previous patch
git-svn-id: http://svn.code.sf.net/p/qmmp-dev/code/trunk/qmmp@5556 90c681e8-e032-0410-971d-27865f9a5e38
-rw-r--r--src/qmmp/equ/iir_fpu.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/qmmp/equ/iir_fpu.c b/src/qmmp/equ/iir_fpu.c
index 9b19be241..b6cf2dd8c 100644
--- a/src/qmmp/equ/iir_fpu.c
+++ b/src/qmmp/equ/iir_fpu.c
@@ -278,6 +278,10 @@ __inline__ int iir32(void * d, int length, int nch)
/* For each band */
for (band = 0; band < band_count; band++)
{
+ /* Optimization */
+ if(gain[band][channel] > -1.0e-10 && gain[band][channel] < 1.0e-10)
+ continue;
+
/* Store Xi(n) */
data_history[band][channel].x[i] = pcm[channel];
/* Calculate and store Yi(n) */
@@ -300,6 +304,10 @@ __inline__ int iir32(void * d, int length, int nch)
//if (eqcfg.extra_filtering)
{
+ /* Optimization */
+ if(gain[band][channel] > -1.0e-10 && gain[band][channel] < 1.0e-10)
+ continue;
+
/* Filter the sample again */
for (band = 0; band < band_count; band++)
{