From 078324cd8286894acbdac049de2d404bbd397b4e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Moutte?= Date: Sun, 9 Apr 2006 17:14:22 +0000 Subject: 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 --- gst/audioresample/resample.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'gst/audioresample/resample.h') diff --git a/gst/audioresample/resample.h b/gst/audioresample/resample.h index 2147542f..84bf8f09 100644 --- a/gst/audioresample/resample.h +++ b/gst/audioresample/resample.h @@ -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, -- cgit v1.2.1