diff options
Diffstat (limited to 'pjmedia')
-rw-r--r-- | pjmedia/src/pjmedia-codec/speex/config.h | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/pjmedia/src/pjmedia-codec/speex/config.h b/pjmedia/src/pjmedia-codec/speex/config.h index 9f6f5c44..31e03376 100644 --- a/pjmedia/src/pjmedia-codec/speex/config.h +++ b/pjmedia/src/pjmedia-codec/speex/config.h @@ -1,5 +1,5 @@ -#include <pj/types.h> +#include <pj/log.h> /* Check if we need to use the fixed point version */ #if !defined(PJ_HAS_FLOATING_POINT) || PJ_HAS_FLOATING_POINT==0 @@ -19,3 +19,16 @@ # pragma warning(disable: 4305) // truncation from 'const double ' to 'float ' # pragma warning(disable: 4701) // local variable used without initialized #endif + +/* + * 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)) + |