Commit 146656cfe6620e7fa81704f5d149ac8172fc4b7f

Sylvain 2021-04-15T21:03:10

AAudio: add compilation to Android.mk, but not activated in SDL_config_android.h

diff --git a/Android.mk b/Android.mk
index 0d29167..99c0d13 100644
--- a/Android.mk
+++ b/Android.mk
@@ -20,6 +20,7 @@ LOCAL_SRC_FILES := \
 	$(wildcard $(LOCAL_PATH)/src/audio/*.c) \
 	$(wildcard $(LOCAL_PATH)/src/audio/android/*.c) \
 	$(wildcard $(LOCAL_PATH)/src/audio/dummy/*.c) \
+	$(wildcard $(LOCAL_PATH)/src/audio/aaudio/*.c) \
 	$(wildcard $(LOCAL_PATH)/src/audio/openslES/*.c) \
 	$(LOCAL_PATH)/src/atomic/SDL_atomic.c.arm \
 	$(LOCAL_PATH)/src/atomic/SDL_spinlock.c.arm \
diff --git a/include/SDL_config_android.h b/include/SDL_config_android.h
index 65d7e20..09d00d2 100644
--- a/include/SDL_config_android.h
+++ b/include/SDL_config_android.h
@@ -142,6 +142,7 @@
 /* Enable various audio drivers */
 #define SDL_AUDIO_DRIVER_ANDROID    1
 #define SDL_AUDIO_DRIVER_OPENSLES   1
+#define SDL_AUDIO_DRIVER_AAUDIO     0
 #define SDL_AUDIO_DRIVER_DUMMY  1
 
 /* Enable various input drivers */