[xiph-commits] r11276 - trunk/speex/libspeex
jm at svn.xiph.org
jm at svn.xiph.org
Tue Apr 25 05:32:06 PDT 2006
Author: jm
Date: 2006-04-25 05:32:04 -0700 (Tue, 25 Apr 2006)
New Revision: 11276
Modified:
trunk/speex/libspeex/filters.c
Log:
simpler code, similar results
Modified: trunk/speex/libspeex/filters.c
===================================================================
--- trunk/speex/libspeex/filters.c 2006-04-25 12:26:31 UTC (rev 11275)
+++ trunk/speex/libspeex/filters.c 2006-04-25 12:32:04 UTC (rev 11276)
@@ -786,8 +786,8 @@
{
c1=c2=0;
}
- g1 = c1/pow(1-pgain1*pgain1, c2);
- g2 = c1/pow(1-pgain2*pgain2, c2);
+ g1 = c1/(1-c2*pgain1*pgain1);
+ g2 = c1/(1-c2*pgain2*pgain2);
if (g1>1)
g1 = 1;
if (g2 > 1)
More information about the commits
mailing list