Android/openslES: fix Pause/ResumeDevices when openslES is not used
parent
ae41831e0d
commit
1b24b2eca5
|
@ -602,23 +602,23 @@ AudioBootStrap openslES_bootstrap = {
|
||||||
|
|
||||||
void openslES_ResumeDevices()
|
void openslES_ResumeDevices()
|
||||||
{
|
{
|
||||||
SLresult result;
|
if (bqPlayerPlay != NULL) {
|
||||||
|
/* set the player's state to 'playing' */
|
||||||
/* set the player's state to 'playing' */
|
SLresult result = (*bqPlayerPlay)->SetPlayState(bqPlayerPlay, SL_PLAYSTATE_PLAYING);
|
||||||
result = (*bqPlayerPlay)->SetPlayState(bqPlayerPlay, SL_PLAYSTATE_PLAYING);
|
if (SL_RESULT_SUCCESS != result) {
|
||||||
if (SL_RESULT_SUCCESS != result) {
|
SDL_SetError("openslES_ResumeDevices failed");
|
||||||
SDL_SetError("Play set state failed");
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void openslES_PauseDevices()
|
void openslES_PauseDevices()
|
||||||
{
|
{
|
||||||
SLresult result;
|
if (bqPlayerPlay != NULL) {
|
||||||
|
/* set the player's state to 'paused' */
|
||||||
/* set the player's state to 'paused' */
|
SLresult result = (*bqPlayerPlay)->SetPlayState(bqPlayerPlay, SL_PLAYSTATE_PAUSED);
|
||||||
result = (*bqPlayerPlay)->SetPlayState(bqPlayerPlay, SL_PLAYSTATE_PAUSED);
|
if (SL_RESULT_SUCCESS != result) {
|
||||||
if (SL_RESULT_SUCCESS != result) {
|
SDL_SetError("openslES_PauseDevices failed");
|
||||||
SDL_SetError("Playe set state failed");
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue