Benny Prijono | eb4cf91 | 2007-04-09 17:13:10 +0000 | [diff] [blame^] | 1 | #include <pj/types.h> |
Benny Prijono | 7f1c90f | 2007-04-07 12:29:46 +0000 | [diff] [blame] | 2 | |
| 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 |
| 6 | #endif |
| 7 | |
| 8 | |
| 9 | #if (defined(PJ_WIN32) && PJ_WIN32!=0) || \ |
| 10 | (defined(PJ_WIN32_WINCE) && PJ_WIN32_WINCE != 0) |
| 11 | # include "../../speex/win32/config.h" |
Benny Prijono | eb4cf91 | 2007-04-09 17:13:10 +0000 | [diff] [blame^] | 12 | #else |
| 13 | #define inline __inline |
| 14 | #define restrict |
| 15 | #include "misc.h" |
Benny Prijono | 7f1c90f | 2007-04-07 12:29:46 +0000 | [diff] [blame] | 16 | #endif |
| 17 | |
| 18 | #ifdef _MSC_VER |
| 19 | # pragma warning(disable: 4100) // unreferenced formal parameter |
| 20 | # pragma warning(disable: 4101) // unreferenced local variable |
| 21 | # pragma warning(disable: 4244) // conversion from 'double ' to 'float ' |
| 22 | # pragma warning(disable: 4305) // truncation from 'const double ' to 'float ' |
| 23 | # pragma warning(disable: 4018) // signed/unsigned mismatch |
| 24 | //# pragma warning(disable: 4701) // local variable used without initialized |
| 25 | #endif |
| 26 | |
| 27 | #include <pj/log.h> |
| 28 | |
| 29 | /* |
| 30 | * Override miscellaneous Speex functions. |
| 31 | */ |
| 32 | #define OVERRIDE_SPEEX_ERROR |
| 33 | #define speex_error(str) PJ_LOG(4,("speex", "error: %s", str)) |
| 34 | |
| 35 | #define OVERRIDE_SPEEX_WARNING |
| 36 | #define speex_warning(str) PJ_LOG(5,("speex", "warning: %s", str)) |
| 37 | |
| 38 | #define OVERRIDE_SPEEX_WARNING_INT |
| 39 | #define speex_warning_int(str,val) PJ_LOG(5,("speex", "warning: %s: %d", str, val)) |
| 40 | |