File Info

Rev. efeab20e689880041b1ce76d479bb22c776d3f74
Size 835 bytes
Time 2020-07-04 19:41:12
Author simphone
Log Message

simphone 0.8.1

Content

diff -urb /dev/null speex/libspeex/os_support_custom.h
--- /dev/null
+++ speex/libspeex/os_support_custom.h
@@ -0,0 +1,29 @@
+#include "../../simcore/logger.h"
+#include "../../simcore/error.h"
+#include "../../simcore/table.h"
+
+#define SIM_MODULE "audio"
+
+#define OVERRIDE_SPEEX_FATAL
+static inline void _speex_fatal(const char *str, const char *file, int line)
+{
+   LOG_FATAL_(SIM_OK, "SPEEX %s(%d): %s\n", file, line, str);
+}
+
+#define OVERRIDE_SPEEX_WARNING
+static inline void speex_warning(const char *str)
+{
+   LOG_WARN_("SPEEX %s\n", str);
+}
+
+#define OVERRIDE_SPEEX_WARNING_INT
+static inline void speex_warning_int(const char *str, int val)
+{
+   LOG_WARN_("SPEEX %s %d\n", str, val);
+}
+
+#define OVERRIDE_SPEEX_NOTIFY
+static inline void speex_notify(const char *str)
+{
+   LOG_NOTE_("SPEEX %s\n", str);
+}
Show on old repository browser