mirror of
https://github.com/Relintai/sdl2_frt.git
synced 2024-12-20 22:16:49 +01:00
Fixed bug 4091 - Undefined references to Android audio functions when SDL_AUDIO_DISABLED is on
Manuel Sabogal If SDL is compiled with the Audio subsystem disabled there are some undefined references to the functions ANDROIDAUDIO_ResumeDevices and ANDROIDAUDIO_PauseDevices in the file src/video/android/SDL_androidevents.c.
This commit is contained in:
parent
8e4afb556a
commit
849d042fa4
@ -29,10 +29,15 @@
|
|||||||
#include "SDL_events.h"
|
#include "SDL_events.h"
|
||||||
#include "SDL_androidwindow.h"
|
#include "SDL_androidwindow.h"
|
||||||
|
|
||||||
|
#if !SDL_AUDIO_DISABLED
|
||||||
/* Can't include sysaudio "../../audio/android/SDL_androidaudio.h"
|
/* Can't include sysaudio "../../audio/android/SDL_androidaudio.h"
|
||||||
* because of THIS redefinition */
|
* because of THIS redefinition */
|
||||||
extern void ANDROIDAUDIO_ResumeDevices(void);
|
extern void ANDROIDAUDIO_ResumeDevices(void);
|
||||||
extern void ANDROIDAUDIO_PauseDevices(void);
|
extern void ANDROIDAUDIO_PauseDevices(void);
|
||||||
|
#else
|
||||||
|
static void ANDROIDAUDIO_ResumeDevices(void) {}
|
||||||
|
static void ANDROIDAUDIO_PauseDevices(void) {}
|
||||||
|
#endif
|
||||||
|
|
||||||
static void
|
static void
|
||||||
android_egl_context_restore()
|
android_egl_context_restore()
|
||||||
|
Loading…
Reference in New Issue
Block a user