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 2024-07-29 10:39:29 -07:00
parent 51cccf3fa2
commit 062caeaa4b
2 changed files with 18 additions and 0 deletions

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_

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_