mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-10-26 12:27:44 +00:00
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:
@@ -23,7 +23,16 @@
|
|||||||
#ifndef SDL_aaudio_h_
|
#ifndef SDL_aaudio_h_
|
||||||
#define SDL_aaudio_h_
|
#define SDL_aaudio_h_
|
||||||
|
|
||||||
|
#ifdef SDL_AUDIO_DRIVER_AAUDIO
|
||||||
|
|
||||||
extern void AAUDIO_ResumeDevices(void);
|
extern void AAUDIO_ResumeDevices(void);
|
||||||
extern void AAUDIO_PauseDevices(void);
|
extern void AAUDIO_PauseDevices(void);
|
||||||
|
|
||||||
|
#else
|
||||||
|
|
||||||
|
#define AAUDIO_ResumeDevices()
|
||||||
|
#define AAUDIO_PauseDevices()
|
||||||
|
|
||||||
|
#endif
|
||||||
|
|
||||||
#endif // SDL_aaudio_h_
|
#endif // SDL_aaudio_h_
|
||||||
|
|||||||
@@ -23,7 +23,16 @@
|
|||||||
#ifndef SDL_openslesaudio_h_
|
#ifndef SDL_openslesaudio_h_
|
||||||
#define SDL_openslesaudio_h_
|
#define SDL_openslesaudio_h_
|
||||||
|
|
||||||
|
#ifdef 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
|
||||||
|
|
||||||
|
#define OPENSLES_ResumeDevices()
|
||||||
|
#define OPENSLES_PauseDevices()
|
||||||
|
|
||||||
|
#endif
|
||||||
|
|
||||||
#endif // SDL_openslesaudio_h_
|
#endif // SDL_openslesaudio_h_
|
||||||
|
|||||||
Reference in New Issue
Block a user