opensles: Patched to compile.

main
Ryan C. Gordon 2023-10-18 14:56:32 -04:00
parent 442e84916a
commit 81c77396af
No known key found for this signature in database
GPG Key ID: FA148B892AB48044
3 changed files with 9 additions and 9 deletions

View File

@ -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)

View File

@ -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

View File

@ -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();
}