(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:
twinaphex 2012-10-18 08:03:21 +02:00
parent 943ee288e1
commit 497f4dfb31

View File

@ -235,6 +235,12 @@ static void *sl_init(const char *device, unsigned rate, unsigned latency)
/* 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);
if(sl->res_ptr != SL_RESULT_SUCCESS)