diff ALmixer.c @ 79:358b0bd5df43 tip

Added support for Apportable's alcSuspend()/alcResume() in BeginInterruption()/EndInterruption. You must define ALMIXER_USE_APPORTABLE_OPENAL_EXTENSIONS to compile in this support.
author Eric Wing <ewing@coronalabs.com>
date Tue, 30 Oct 2012 16:01:30 -0700
parents 40078d025b73
children
line wrap: on
line diff
--- 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;
 }