#ifndef __RESAMPLE_DEBUG_H__
#define __RESAMPLE_DEBUG_H__
+#if 0
enum
{
RESAMPLE_LEVEL_NONE = 0,
int line, const char *format, ...);
void resample_debug_set_level (int level);
int resample_debug_get_level (void);
+#else
+
+#include <gst/gst.h>
+
+GST_DEBUG_CATEGORY_EXTERN (audioresample_debug);
+#define GST_CAT_DEFAULT audioresample_debug
+
+#define RESAMPLE_ERROR(...) GST_ERROR(__VA_ARGS__)
+#define RESAMPLE_WARNING(...) GST_WARNING(__VA_ARGS__)
+#define RESAMPLE_INFO(...) GST_INFO(__VA_ARGS__)
+#define RESAMPLE_DEBUG(...) GST_DEBUG(__VA_ARGS__)
+#define RESAMPLE_LOG(...) GST_LOG(__VA_ARGS__)
+
+#define resample_debug_set_level(x) do { } while (0)
+
+#endif
#endif
#include <gst/audio/audio.h>
#include <gst/base/gstbasetransform.h>
-GST_DEBUG_CATEGORY_STATIC (audioresample_debug);
+GST_DEBUG_CATEGORY (audioresample_debug);
#define GST_CAT_DEFAULT audioresample_debug
/* elementfactory information */
void resample_scale_functable (ResampleState * r);
-
void
resample_init (void)
{
static int inited = 0;
- const char *debug;
if (!inited) {
oil_init ();
inited = 1;
}
-
- if ((debug = g_getenv ("RESAMPLE_DEBUG"))) {
- resample_debug_set_level (atoi (debug));
- }
}
ResampleState *