From 87df57b3b3d8e8f624e0a8f7c3908abb9a059636 Mon Sep 17 00:00:00 2001 From: pelya Date: Thu, 16 Dec 2010 10:09:46 +0000 Subject: [PATCH] Interface to the AL pause functions --- project/jni/openal/include/AL/android.h | 38 +++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 project/jni/openal/include/AL/android.h diff --git a/project/jni/openal/include/AL/android.h b/project/jni/openal/include/AL/android.h new file mode 100644 index 000000000..aefec37c4 --- /dev/null +++ b/project/jni/openal/include/AL/android.h @@ -0,0 +1,38 @@ +#if defined(__cplusplus) +extern "C" { +#endif + +#if defined(_WIN32) && !defined(_XBOX) + #if defined(AL_BUILD_LIBRARY) + #define AL_API __declspec(dllexport) + #else + #define AL_API __declspec(dllimport) + #endif +#else + #if defined(AL_BUILD_LIBRARY) && defined(HAVE_GCC_VISIBILITY) + #define AL_API __attribute__((visibility("protected"))) + #else + #define AL_API extern + #endif +#endif + +#if defined(_WIN32) + #define AL_APIENTRY __cdecl +#else + #define AL_APIENTRY +#endif + +#if defined(TARGET_OS_MAC) && TARGET_OS_MAC + #pragma export on +#endif + +AL_API void AL_APIENTRY al_android_pause_playback(); +AL_API void AL_APIENTRY al_android_resume_playback(); + +#if defined(TARGET_OS_MAC) && TARGET_OS_MAC + #pragma export off +#endif + +#if defined(__cplusplus) +} /* extern "C" */ +#endif \ No newline at end of file