summaryrefslogtreecommitdiffstats
path: root/gst/audioresample/resample.h
diff options
context:
space:
mode:
Diffstat (limited to 'gst/audioresample/resample.h')
-rw-r--r--gst/audioresample/resample.h8
1 files changed, 8 insertions, 0 deletions
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,