mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-03-06 17:17:04 +00:00
opensles: Patched to compile.
This commit is contained in:
@@ -755,7 +755,7 @@ static SDL_bool OPENSLES_Init(SDL_AudioDriverImpl *impl)
|
||||
}
|
||||
|
||||
AudioBootStrap OPENSLES_bootstrap = {
|
||||
"openslES", "opensl ES audio driver", OPENSLES_Init, SDL_FALSE
|
||||
"openslES", "OpenSL ES audio driver", OPENSLES_Init, SDL_FALSE
|
||||
};
|
||||
|
||||
void OPENSLES_ResumeDevices(void)
|
||||
|
||||
@@ -25,13 +25,13 @@
|
||||
|
||||
#ifdef SDL_AUDIO_DRIVER_OPENSLES
|
||||
|
||||
void openslES_ResumeDevices(void);
|
||||
void openslES_PauseDevices(void);
|
||||
void OPENSLES_ResumeDevices(void);
|
||||
void OPENSLES_PauseDevices(void);
|
||||
|
||||
#else
|
||||
|
||||
static void openslES_ResumeDevices(void) {}
|
||||
static void openslES_PauseDevices(void) {}
|
||||
static void OPENSLES_ResumeDevices(void) {}
|
||||
static void OPENSLES_PauseDevices(void) {}
|
||||
|
||||
#endif
|
||||
|
||||
|
||||
@@ -107,7 +107,7 @@ void Android_PumpEvents_Blocking(SDL_VideoDevice *_this)
|
||||
#endif
|
||||
|
||||
ANDROIDAUDIO_PauseDevices();
|
||||
openslES_PauseDevices();
|
||||
OPENSLES_PauseDevices();
|
||||
AAUDIO_PauseDevices();
|
||||
|
||||
if (SDL_WaitSemaphore(Android_ResumeSem) == 0) {
|
||||
@@ -118,7 +118,7 @@ void Android_PumpEvents_Blocking(SDL_VideoDevice *_this)
|
||||
SDL_SendAppEvent(SDL_EVENT_WILL_ENTER_FOREGROUND);
|
||||
|
||||
ANDROIDAUDIO_ResumeDevices();
|
||||
openslES_ResumeDevices();
|
||||
OPENSLES_ResumeDevices();
|
||||
AAUDIO_ResumeDevices();
|
||||
|
||||
/* Restore the GL Context from here, as this operation is thread dependent */
|
||||
@@ -181,7 +181,7 @@ void Android_PumpEvents_NonBlocking(SDL_VideoDevice *_this)
|
||||
|
||||
if (videodata->pauseAudio) {
|
||||
ANDROIDAUDIO_PauseDevices();
|
||||
openslES_PauseDevices();
|
||||
OPENSLES_PauseDevices();
|
||||
AAUDIO_PauseDevices();
|
||||
}
|
||||
|
||||
@@ -197,7 +197,7 @@ void Android_PumpEvents_NonBlocking(SDL_VideoDevice *_this)
|
||||
|
||||
if (videodata->pauseAudio) {
|
||||
ANDROIDAUDIO_ResumeDevices();
|
||||
openslES_ResumeDevices();
|
||||
OPENSLES_ResumeDevices();
|
||||
AAUDIO_ResumeDevices();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user