Fix #15500: deprecation warning on Android for slCreateEngine

This commit is contained in:
Brenton Bostick
2026-05-03 10:58:49 -04:00
committed by Ryan C. Gordon
parent 4eb221881a
commit e8127a9a11

View File

@@ -33,6 +33,11 @@
#include <SLES/OpenSLES_Android.h>
#include <android/log.h>
// OpenSL ES is deprecated, but we still support it for now.
#ifdef HAVE_GCC_DIAGNOSTIC_PRAGMA
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
#endif // HAVE_GCC_DIAGNOSTIC_PRAGMA
#define NUM_BUFFERS 2 // -- Don't lower this!
@@ -805,4 +810,8 @@ void OPENSLES_PauseDevices(void)
}
}
#ifdef HAVE_GCC_DIAGNOSTIC_PRAGMA
#pragma GCC diagnostic pop
#endif // HAVE_GCC_DIAGNOSTIC_PRAGMA
#endif // SDL_AUDIO_DRIVER_OPENSLES