Lines Matching refs:res

76     SLresult res;  in PrefetchEventCallback()  local
79 res = (*caller)->GetFillLevel(caller, &level); CheckErrPlyr(res, *pPlayerId); in PrefetchEventCallback()
82 res = (*caller)->GetPrefetchStatus(caller, &status); CheckErrPlyr(res, *pPlayerId); in PrefetchEventCallback()
107 SLresult res; in PlayEventCallback() local
116 res = (*caller)->GetPosition(caller, &pMsec); CheckErrPlyr(res, *pPlayerId); in PlayEventCallback()
123 res = (*caller)->GetPosition(caller, &pMsec); CheckErrPlyr(res, *pPlayerId); in PlayEventCallback()
132 SLresult res; in TestSetup() local
139 res = slCreateEngine( &slEngine, 1, EngineOption, 0, NULL, NULL); in TestSetup()
140 CheckErr(res); in TestSetup()
142 res = (*slEngine)->Realize(slEngine, SL_BOOLEAN_FALSE); in TestSetup()
143 CheckErr(res); in TestSetup()
145 res = (*slEngine)->GetInterface(slEngine, SL_IID_ENGINE, (void*)&engineItf); in TestSetup()
146 CheckErr(res); in TestSetup()
149 res = (*engineItf)->CreateOutputMix(engineItf, &outputMix, 0, in TestSetup()
150 iidArray, required); CheckErr(res); in TestSetup()
152 res = (*outputMix)->Realize(outputMix, SL_BOOLEAN_FALSE); in TestSetup()
153 CheckErr(res); in TestSetup()
207 SLresult res; in CreatePlayer() local
211 res = (*engineItf)->CreateAudioPlayer(engineItf, &audioPlayer[playerId], in CreatePlayer()
213 if (SL_RESULT_SUCCESS != res) { in CreatePlayer()
222 res = (*audioPlayer[playerId])->Realize(audioPlayer[playerId], SL_BOOLEAN_FALSE); in CreatePlayer()
223 if (SL_RESULT_SUCCESS != res) { in CreatePlayer()
232 res = (*audioPlayer[playerId])->GetInterface(audioPlayer[playerId], SL_IID_PLAY, in CreatePlayer()
234 CheckErrPlyr(res, playerId); in CreatePlayer()
236 res = (*audioPlayer[playerId])->GetInterface(audioPlayer[playerId], SL_IID_VOLUME, in CreatePlayer()
238 CheckErrPlyr(res, playerId); in CreatePlayer()
240 res = (*audioPlayer[playerId])->GetInterface(audioPlayer[playerId], SL_IID_PREFETCHSTATUS, in CreatePlayer()
242 CheckErrPlyr(res, playerId); in CreatePlayer()
243 res = (*prefetchItfs[playerId])->RegisterCallback(prefetchItfs[playerId], PrefetchEventCallback, in CreatePlayer()
245 CheckErrPlyr(res, playerId); in CreatePlayer()
246 res = (*prefetchItfs[playerId])->SetCallbackEventsMask(prefetchItfs[playerId], in CreatePlayer()
248 CheckErrPlyr(res, playerId); in CreatePlayer()
251 res = (*volItfs[playerId])->SetVolumeLevel( volItfs[playerId], -300); in CreatePlayer()
252 CheckErrPlyr(res, playerId); in CreatePlayer()
255 res = (*playItfs[playerId])->SetMarkerPosition(playItfs[playerId], 2000); in CreatePlayer()
256 CheckErrPlyr(res, playerId); in CreatePlayer()
257 res = (*playItfs[playerId])->SetPositionUpdatePeriod(playItfs[playerId], 500); in CreatePlayer()
258 CheckErrPlyr(res, playerId); in CreatePlayer()
259 res = (*playItfs[playerId])->SetCallbackEventsMask(playItfs[playerId], in CreatePlayer()
261 CheckErrPlyr(res, playerId); in CreatePlayer()
262 res = (*playItfs[playerId])->RegisterCallback(playItfs[playerId], PlayEventCallback, in CreatePlayer()
264 CheckErrPlyr(res, playerId); in CreatePlayer()
272 res = (*playItfs[playerId])->SetPlayState( playItfs[playerId], SL_PLAYSTATE_PAUSED ); in CreatePlayer()
273 CheckErrPlyr(res, playerId); in CreatePlayer()
279 res = (*prefetchItfs[playerId])->GetPrefetchStatus(prefetchItfs[playerId], &prefetchStatus); in CreatePlayer()
280 CheckErrPlyr(res, playerId); in CreatePlayer()
288 res = (*playItfs[playerId])->SetPlayState( playItfs[playerId], SL_PLAYSTATE_PLAYING ); in CreatePlayer()
289 CheckErrPlyr(res, playerId); in CreatePlayer()
293 res = (*playItfs[playerId])->GetDuration(playItfs[playerId], &durationInMsec); in CreatePlayer()
294 CheckErrPlyr(res, playerId); in CreatePlayer()