# HG changeset patch # User Eric Wing # Date 1351638090 25200 # Node ID 358b0bd5df43d6cd16c6c47f9bf450c6de0afaac # Parent 714ec6c5789d9373e661ee1140cdcd884f79a96d Added support for Apportable's alcSuspend()/alcResume() in BeginInterruption()/EndInterruption. You must define ALMIXER_USE_APPORTABLE_OPENAL_EXTENSIONS to compile in this support. diff -r 714ec6c5789d -r 358b0bd5df43 ALmixer.c --- a/ALmixer.c Thu Oct 25 16:12:50 2012 -0700 +++ b/ALmixer.c Tue Oct 30 16:01:30 2012 -0700 @@ -7547,6 +7547,12 @@ ALmixer_SuspendUpdates(); + /* App Portable introduced alcSuspend() and alcResume() for Android in their OpenAL Soft fork. */ +#if defined(__ANDROID__) && defined(ALMIXER_USE_APPORTABLE_OPENAL_EXTENSIONS) + alcSuspend(); +#endif + + s_interruptionContext = alcGetCurrentContext(); if(NULL != s_interruptionContext) { @@ -7587,6 +7593,13 @@ s_interruptionContext = NULL; } + + /* App Portable introduced alcSuspend() and alcResume() for Android in their OpenAL Soft fork. */ +#if defined(__ANDROID__) && defined(ALMIXER_USE_APPORTABLE_OPENAL_EXTENSIONS) + alcResume(); +#endif + + ALmixer_ResumeUpdates(); g_inInterruption = AL_FALSE; }