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 |
Nanang Izzuddin | 7155cc6 | 2008-06-10 14:35:50 +0000 | [diff] [blame] | 6 | # define USE_KISS_FFT |
Nanang Izzuddin | 3cbb065 | 2008-06-10 14:09:37 +0000 | [diff] [blame] | 7 | #else |
| 8 | # define FLOATING_POINT |
Nanang Izzuddin | 7155cc6 | 2008-06-10 14:35:50 +0000 | [diff] [blame] | 9 | # define USE_SMALLFT |
Benny Prijono | 7f1c90f | 2007-04-07 12:29:46 +0000 | [diff] [blame] | 10 | #endif |
| 11 | |
Nanang Izzuddin | 7155cc6 | 2008-06-10 14:35:50 +0000 | [diff] [blame] | 12 | #define EXPORT |
Benny Prijono | 7f1c90f | 2007-04-07 12:29:46 +0000 | [diff] [blame] | 13 | |
| 14 | #if (defined(PJ_WIN32) && PJ_WIN32!=0) || \ |
| 15 | (defined(PJ_WIN32_WINCE) && PJ_WIN32_WINCE != 0) |
| 16 | # include "../../speex/win32/config.h" |
Benny Prijono | eb4cf91 | 2007-04-09 17:13:10 +0000 | [diff] [blame] | 17 | #else |
| 18 | #define inline __inline |
| 19 | #define restrict |
Benny Prijono | 7f1c90f | 2007-04-07 12:29:46 +0000 | [diff] [blame] | 20 | #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 | |