gst/audioresample/debug.h: replace debug macros with variable number of parameters by a simple alias to gstreamer sta...

Original commit message from CVS:
* gst/audioresample/debug.h:
replace debug macros with variable number of parameters
by a simple alias to gstreamer standard debug macros
(#define RESAMPLE_ERROR GST_ERROR, __VA_ARGS__ is not
supported by MSVC 6.0 and 7.1)
* gst/audioresample/resample.h:
define M_PI and rint for WIN32
* win32/common/libgstaudio.def:
* win32/common/libgstriff.def:
* win32/common/libgsttag.def:
* win32/common/libgstvideo.def:
add new exported functions
* win32/vs6:
update project files
This commit is contained in:
Sébastien Moutte 2006-04-09 17:14:22 +00:00
parent aa99af6027
commit 078324cd82
2 changed files with 13 additions and 5 deletions

View file

@ -38,11 +38,11 @@ int resample_debug_get_level (void);
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_ERROR GST_ERROR
#define RESAMPLE_WARNING GST_WARNING
#define RESAMPLE_INFO GST_INFO
#define RESAMPLE_DEBUG GST_DEBUG
#define RESAMPLE_LOG GST_LOG
#define resample_debug_set_level(x) do { } while (0)

View file

@ -24,6 +24,14 @@
#include "functable.h"
#include "buffer.h"
#ifndef M_PI
#define M_PI 3.14159265358979323846
#endif
#ifdef WIN32
#define rint(x) (floor((x)+0.5))
#endif
typedef enum {
RESAMPLE_FORMAT_S16 = 0,
RESAMPLE_FORMAT_S32,