aboutsummaryrefslogtreecommitdiffstats
path: root/examples/alloopback.c
diff options
context:
space:
mode:
Diffstat (limited to 'examples/alloopback.c')
-rw-r--r--examples/alloopback.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/examples/alloopback.c b/examples/alloopback.c
index 95ac433f..16553f9b 100644
--- a/examples/alloopback.c
+++ b/examples/alloopback.c
@@ -38,6 +38,13 @@
#include "common/alhelpers.h"
+#ifndef SDL_AUDIO_MASK_BITSIZE
+#define SDL_AUDIO_MASK_BITSIZE (0xFF)
+#endif
+#ifndef SDL_AUDIO_BITSIZE
+#define SDL_AUDIO_BITSIZE(x) (x & SDL_AUDIO_MASK_BITSIZE)
+#endif
+
#ifndef M_PI
#define M_PI (3.14159265358979323846)
#endif