mirror of
https://github.com/shadps4-emu/ext-SDL.git
synced 2024-11-27 12:00:35 +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:
parent
51cccf3fa2
commit
062caeaa4b
@ -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_
|
||||
|
@ -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_
|
||||
|
Loading…
Reference in New Issue
Block a user