summaryrefslogtreecommitdiff
path: root/third_party/build/speex/config.h
diff options
context:
space:
mode:
authorBenny Prijono <bennylp@teluu.com>2007-04-07 12:29:46 +0000
committerBenny Prijono <bennylp@teluu.com>2007-04-07 12:29:46 +0000
commit3ade1510e72926d02d7c7d4416257449bc0cd3f3 (patch)
treec51d4960cac0fcd8bf3483a8e77444ac5f9a3177 /third_party/build/speex/config.h
parentbfd3f58f5b715238fe618d053ddf908a34f1e56c (diff)
Split speex, portaudio, and gsm into third_party directory
git-svn-id: http://svn.pjsip.org/repos/pjproject/branches/split-3rd-party@1168 74dad513-b988-da41-8d7b-12977e46ad98
Diffstat (limited to 'third_party/build/speex/config.h')
-rw-r--r--third_party/build/speex/config.h36
1 files changed, 36 insertions, 0 deletions
diff --git a/third_party/build/speex/config.h b/third_party/build/speex/config.h
new file mode 100644
index 00000000..7874c3f7
--- /dev/null
+++ b/third_party/build/speex/config.h
@@ -0,0 +1,36 @@
+#include <pj/config.h>
+
+/* Check if we need to use the fixed point version */
+#if !defined(PJ_HAS_FLOATING_POINT) || PJ_HAS_FLOATING_POINT==0
+# define FIXED_POINT
+#endif
+
+
+#if (defined(PJ_WIN32) && PJ_WIN32!=0) || \
+ (defined(PJ_WIN32_WINCE) && PJ_WIN32_WINCE != 0)
+# include "../../speex/win32/config.h"
+#endif
+
+#ifdef _MSC_VER
+# pragma warning(disable: 4100) // unreferenced formal parameter
+# pragma warning(disable: 4101) // unreferenced local variable
+# pragma warning(disable: 4244) // conversion from 'double ' to 'float '
+# pragma warning(disable: 4305) // truncation from 'const double ' to 'float '
+# pragma warning(disable: 4018) // signed/unsigned mismatch
+//# pragma warning(disable: 4701) // local variable used without initialized
+#endif
+
+#include <pj/log.h>
+
+/*
+ * Override miscellaneous Speex functions.
+ */
+#define OVERRIDE_SPEEX_ERROR
+#define speex_error(str) PJ_LOG(4,("speex", "error: %s", str))
+
+#define OVERRIDE_SPEEX_WARNING
+#define speex_warning(str) PJ_LOG(5,("speex", "warning: %s", str))
+
+#define OVERRIDE_SPEEX_WARNING_INT
+#define speex_warning_int(str,val) PJ_LOG(5,("speex", "warning: %s: %d", str, val))
+