blob: ba7be7a6e21d233da490e2274094580c6d416459 [file] [log] [blame]
Benny Prijonoeb4cf912007-04-09 17:13:10 +00001#include <pj/types.h>
Benny Prijono7f1c90f2007-04-07 12:29:46 +00002
3/* Check if we need to use the fixed point version */
4#if !defined(PJ_HAS_FLOATING_POINT) || PJ_HAS_FLOATING_POINT==0
5# define FIXED_POINT
Nanang Izzuddin7155cc62008-06-10 14:35:50 +00006# define USE_KISS_FFT
Nanang Izzuddin3cbb0652008-06-10 14:09:37 +00007#else
8# define FLOATING_POINT
Nanang Izzuddin7155cc62008-06-10 14:35:50 +00009# define USE_SMALLFT
Benny Prijono7f1c90f2007-04-07 12:29:46 +000010#endif
11
Nanang Izzuddin7155cc62008-06-10 14:35:50 +000012#define EXPORT
Benny Prijono7f1c90f2007-04-07 12:29:46 +000013
14#if (defined(PJ_WIN32) && PJ_WIN32!=0) || \
15 (defined(PJ_WIN32_WINCE) && PJ_WIN32_WINCE != 0)
16# include "../../speex/win32/config.h"
Benny Prijonoeb4cf912007-04-09 17:13:10 +000017#else
18#define inline __inline
19#define restrict
Benny Prijono7f1c90f2007-04-07 12:29:46 +000020#endif
21
22#ifdef _MSC_VER
23# pragma warning(disable: 4100) // unreferenced formal parameter
24# pragma warning(disable: 4101) // unreferenced local variable
25# pragma warning(disable: 4244) // conversion from 'double ' to 'float '
26# pragma warning(disable: 4305) // truncation from 'const double ' to 'float '
27# pragma warning(disable: 4018) // signed/unsigned mismatch
28//# pragma warning(disable: 4701) // local variable used without initialized
29#endif
30
31#include <pj/log.h>
32
33/*
34 * Override miscellaneous Speex functions.
35 */
36#define OVERRIDE_SPEEX_ERROR
37#define speex_error(str) PJ_LOG(4,("speex", "error: %s", str))
38
39#define OVERRIDE_SPEEX_WARNING
40#define speex_warning(str) PJ_LOG(5,("speex", "warning: %s", str))
41
42#define OVERRIDE_SPEEX_WARNING_INT
43#define speex_warning_int(str,val) PJ_LOG(5,("speex", "warning: %s: %d", str, val))
44