mirror of
https://github.com/libretro/RetroArch
synced 2025-02-15 18:39:55 +00:00
(OpenSL ES) Add workaround for OutputMix - setting volume not working
with Android OSL ES implementation - seems to fail at init now though
This commit is contained in:
parent
943ee288e1
commit
497f4dfb31
@ -235,6 +235,12 @@ static void *sl_init(const char *device, unsigned rate, unsigned latency)
|
|||||||
|
|
||||||
/* Setup for audio playback */
|
/* Setup for audio playback */
|
||||||
|
|
||||||
|
/* As suggested by Google above as a replacement for OutputMix IID_VOLUME - see note */
|
||||||
|
sl->res_ptr = (*sl->player)->GetInterface(sl->player, SL_IID_VOLUME, &sl->volumeItf);
|
||||||
|
|
||||||
|
if(sl->res_ptr != SL_RESULT_SUCCESS)
|
||||||
|
goto error;
|
||||||
|
|
||||||
sl->res_ptr = (*sl->playItf)->SetPlayState(sl->playItf, SL_PLAYSTATE_PLAYING);
|
sl->res_ptr = (*sl->playItf)->SetPlayState(sl->playItf, SL_PLAYSTATE_PLAYING);
|
||||||
|
|
||||||
if(sl->res_ptr != SL_RESULT_SUCCESS)
|
if(sl->res_ptr != SL_RESULT_SUCCESS)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user