Commit 0713c1e53b1dcca29097968c2d192f4fbe9f8120

Ryan C. Gordon 2015-04-05T15:52:37

Patched to compile on Android when audio subsystem is disabled (thanks, Jonas!) Fixes Bugzilla #2797.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
diff --git a/src/video/android/SDL_androidevents.c b/src/video/android/SDL_androidevents.c
index 2662d1b..ef7d556 100644
--- a/src/video/android/SDL_androidevents.c
+++ b/src/video/android/SDL_androidevents.c
@@ -32,8 +32,14 @@
 
 void android_egl_context_backup();
 void android_egl_context_restore();
+
+#if SDL_AUDIO_DRIVER_ANDROID
 void AndroidAUD_ResumeDevices(void);
 void AndroidAUD_PauseDevices(void);
+#else
+static void AndroidAUD_ResumeDevices(void) {}
+static void AndroidAUD_PauseDevices(void) {}
+#endif
 
 void 
 android_egl_context_restore()