[xiph-commits] r10608 - trunk/speex/libspeex
jm at svn.xiph.org
jm at svn.xiph.org
Fri Dec 16 04:21:27 PST 2005
Author: jm
Date: 2005-12-16 04:21:24 -0800 (Fri, 16 Dec 2005)
New Revision: 10608
Modified:
trunk/speex/libspeex/mdf.c
Log:
some constants
Modified: trunk/speex/libspeex/mdf.c
===================================================================
--- trunk/speex/libspeex/mdf.c 2005-12-16 11:30:03 UTC (rev 10607)
+++ trunk/speex/libspeex/mdf.c 2005-12-16 12:21:24 UTC (rev 10608)
@@ -50,9 +50,6 @@
#define M_PI 3.14159265358979323846
#endif
-#undef BETA
-#define BETA .65
-
#define min(a,b) ((a)<(b) ? (a) : (b))
#define max(a,b) ((a)>(b) ? (a) : (b))
@@ -64,6 +61,20 @@
#define WEIGHT_SHIFT 0
#endif
+#ifdef FIXED_POINT
+static const spx_float_t MAX_ALPHA = {16777, -21};
+static const spx_float_t ALPHA0 = {26214, -19};
+static const spx_float_t MIN_LEAK = {16777, -24};
+static const spx_float_t SPEC_AVERAGE = {20972, -20};
+static const spx_float_t SPEC_AVERAGE_1 = {32113,-15};
+#else
+static const spx_float_t MAX_ALPHA = .008;
+static const spx_float_t ALPHA0 = .05;
+static const spx_float_t MIN_LEAK = .001;
+static const spx_float_t SPEC_AVERAGE = .02;
+static const spx_float_t SPEC_AVERAGE_1 = .98;
+#endif
+
/** Speex echo cancellation state. */
struct SpeexEchoState_ {
int frame_size; /**< Number of samples processed each time */
More information about the commits
mailing list