diff options
author | David Schleef <ds@schleef.org> | 2005-08-23 19:29:38 +0000 |
---|---|---|
committer | David Schleef <ds@schleef.org> | 2005-08-23 19:29:38 +0000 |
commit | bde8ec9bf7f84427f403755282b45d3994fad7ce (patch) | |
tree | 48577ddcb554ad57e60efc77881eabf63610aff7 /gst/audioresample/debug.h | |
parent | 3a9fc486801df3e37e59843dad52022732708105 (diff) | |
download | gst-plugins-bad-bde8ec9bf7f84427f403755282b45d3994fad7ce.tar.gz gst-plugins-bad-bde8ec9bf7f84427f403755282b45d3994fad7ce.tar.bz2 gst-plugins-bad-bde8ec9bf7f84427f403755282b45d3994fad7ce.zip |
gst/audioresample/Makefile.am: Leet audioresampling code
Original commit message from CVS:
* gst/audioresample/Makefile.am: Leet audioresampling code
* gst/audioresample/buffer.c:
* gst/audioresample/buffer.h:
* gst/audioresample/debug.c:
* gst/audioresample/debug.h:
* gst/audioresample/functable.c:
* gst/audioresample/functable.h:
* gst/audioresample/gstaudioresample.c:
* gst/audioresample/gstaudioresample.h:
* gst/audioresample/resample.c:
* gst/audioresample/resample.h:
* gst/audioresample/resample_chunk.c:
* gst/audioresample/resample_functable.c:
* gst/audioresample/resample_ref.c:
Diffstat (limited to 'gst/audioresample/debug.h')
-rw-r--r-- | gst/audioresample/debug.h | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/gst/audioresample/debug.h b/gst/audioresample/debug.h new file mode 100644 index 00000000..2205940c --- /dev/null +++ b/gst/audioresample/debug.h @@ -0,0 +1,34 @@ + +#ifndef __RESAMPLE_DEBUG_H__ +#define __RESAMPLE_DEBUG_H__ + +enum +{ + RESAMPLE_LEVEL_NONE = 0, + RESAMPLE_LEVEL_ERROR, + RESAMPLE_LEVEL_WARNING, + RESAMPLE_LEVEL_INFO, + RESAMPLE_LEVEL_DEBUG, + RESAMPLE_LEVEL_LOG +}; + +#define RESAMPLE_ERROR(...) \ + RESAMPLE_DEBUG_LEVEL(RESAMPLE_LEVEL_ERROR, __VA_ARGS__) +#define RESAMPLE_WARNING(...) \ + RESAMPLE_DEBUG_LEVEL(RESAMPLE_LEVEL_WARNING, __VA_ARGS__) +#define RESAMPLE_INFO(...) \ + RESAMPLE_DEBUG_LEVEL(RESAMPLE_LEVEL_INFO, __VA_ARGS__) +#define RESAMPLE_DEBUG(...) \ + RESAMPLE_DEBUG_LEVEL(RESAMPLE_LEVEL_DEBUG, __VA_ARGS__) +#define RESAMPLE_LOG(...) \ + RESAMPLE_DEBUG_LEVEL(RESAMPLE_LEVEL_LOG, __VA_ARGS__) + +#define RESAMPLE_DEBUG_LEVEL(level,...) \ + resample_debug_log ((level), __FILE__, __FUNCTION__, __LINE__, __VA_ARGS__) + +void resample_debug_log (int level, const char *file, const char *function, + int line, const char *format, ...); +void resample_debug_set_level (int level); +int resample_debug_get_level (void); + +#endif |