Fix -Wundef warnings due to use of unguarded SDL_AUDIO_DRIVER_OPENSLES
This commit is contained in:
1 parent
19d5a7dedf
commit
88280ddeec
3 files changed
+3
-3
No files matched your search
@@ -61,7 +61,7 @@ static const AudioBootStrap *const bootstrap[] = {
|
|||||||
#ifdef SDL_AUDIO_DRIVER_AAUDIO
|
#ifdef SDL_AUDIO_DRIVER_AAUDIO
|
||||||
&aaudio_bootstrap,
|
&aaudio_bootstrap,
|
||||||
#endif
|
#endif
|
||||||
#if SDL_AUDIO_DRIVER_OPENSLES
|
#ifdef SDL_AUDIO_DRIVER_OPENSLES
|
||||||
&openslES_bootstrap,
|
&openslES_bootstrap,
|
||||||
#endif
|
#endif
|
||||||
#if SDL_AUDIO_DRIVER_ANDROID
|
#if SDL_AUDIO_DRIVER_ANDROID
|
||||||
|
|||||||
@@ -20,7 +20,7 @@
|
|||||||
*/
|
*/
|
||||||
#include "SDL_internal.h"
|
#include "SDL_internal.h"
|
||||||
|
|
||||||
#if SDL_AUDIO_DRIVER_OPENSLES
|
#ifdef SDL_AUDIO_DRIVER_OPENSLES
|
||||||
|
|
||||||
/* For more discussion of low latency audio on Android, see this:
|
/* For more discussion of low latency audio on Android, see this:
|
||||||
https://googlesamples.github.io/android-audio-high-performance/guides/opensl_es.html
|
https://googlesamples.github.io/android-audio-high-performance/guides/opensl_es.html
|
||||||
|
|||||||
@@ -39,7 +39,7 @@ static void ANDROIDAUDIO_ResumeDevices(void) {}
|
|||||||
static void ANDROIDAUDIO_PauseDevices(void) {}
|
static void ANDROIDAUDIO_PauseDevices(void) {}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if !defined(SDL_AUDIO_DISABLED) && SDL_AUDIO_DRIVER_OPENSLES
|
#if !defined(SDL_AUDIO_DISABLED) && defined(SDL_AUDIO_DRIVER_OPENSLES)
|
||||||
extern void openslES_ResumeDevices(void);
|
extern void openslES_ResumeDevices(void);
|
||||||
extern void openslES_PauseDevices(void);
|
extern void openslES_PauseDevices(void);
|
||||||
#else
|
#else
|
||||||
|
|||||||
Reference in new issue
Block a user