Fixed Android build with audio disabled

These functions are called by the Android event code regardless of whether audio is enabled

Fixes https://github.com/libsdl-org/SDL/issues/10418
This commit is contained in:
Sam Lantinga committed 2024-07-29 10:40:10 -07:00
1 parent 51cccf3fa2
commit 062caeaa4b
2 files changed
+18

No files matched your search

+9
View File
@@ -23,7 +23,16 @@
#ifndef SDL_aaudio_h_
#define SDL_aaudio_h_
#ifdef SDL_AUDIO_DRIVER_AAUDIO
extern void AAUDIO_ResumeDevices(void);
extern void AAUDIO_PauseDevices(void);
#else
#define AAUDIO_ResumeDevices()
#define AAUDIO_PauseDevices()
#endif
#endif // SDL_aaudio_h_
+9
View File
@@ -23,7 +23,16 @@
#ifndef SDL_openslesaudio_h_
#define SDL_openslesaudio_h_
#ifdef SDL_AUDIO_DRIVER_OPENSLES
extern void OPENSLES_ResumeDevices(void);
extern void OPENSLES_PauseDevices(void);
#else
#define OPENSLES_ResumeDevices()
#define OPENSLES_PauseDevices()
#endif
#endif // SDL_openslesaudio_h_