• Home
  • Raw
  • Download

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()
134 SLresult res; in TestSetup() local
141 res = slCreateEngine( &slEngine, 1, EngineOption, 0, NULL, NULL); in TestSetup()
142 CheckErr(res); in TestSetup()
144 res = (*slEngine)->Realize(slEngine, SL_BOOLEAN_FALSE); in TestSetup()
145 CheckErr(res); in TestSetup()
147 res = (*slEngine)->GetInterface(slEngine, SL_IID_ENGINE, (void*)&engineItf); in TestSetup()
148 CheckErr(res); in TestSetup()
151 res = (*engineItf)->CreateOutputMix(engineItf, &outputMix, 0, in TestSetup()
152 iidArray, required); CheckErr(res); in TestSetup()
154 res = (*outputMix)->Realize(outputMix, SL_BOOLEAN_FALSE); in TestSetup()
155 CheckErr(res); in TestSetup()
209 SLresult res; in CreatePlayer() local
213 res = (*engineItf)->CreateAudioPlayer(engineItf, &audioPlayer[playerId], in CreatePlayer()
215 if (SL_RESULT_SUCCESS != res) { in CreatePlayer()
224 res = (*audioPlayer[playerId])->Realize(audioPlayer[playerId], SL_BOOLEAN_FALSE); in CreatePlayer()
225 if (SL_RESULT_SUCCESS != res) { in CreatePlayer()
234 res = (*audioPlayer[playerId])->GetInterface(audioPlayer[playerId], SL_IID_PLAY, in CreatePlayer()
236 CheckErrPlyr(res, playerId); in CreatePlayer()
238 res = (*audioPlayer[playerId])->GetInterface(audioPlayer[playerId], SL_IID_VOLUME, in CreatePlayer()
240 CheckErrPlyr(res, playerId); in CreatePlayer()
242 res = (*audioPlayer[playerId])->GetInterface(audioPlayer[playerId], SL_IID_PREFETCHSTATUS, in CreatePlayer()
244 CheckErrPlyr(res, playerId); in CreatePlayer()
245 res = (*prefetchItfs[playerId])->RegisterCallback(prefetchItfs[playerId], PrefetchEventCallback, in CreatePlayer()
247 CheckErrPlyr(res, playerId); in CreatePlayer()
248 res = (*prefetchItfs[playerId])->SetCallbackEventsMask(prefetchItfs[playerId], in CreatePlayer()
250 CheckErrPlyr(res, playerId); in CreatePlayer()
253 res = (*volItfs[playerId])->SetVolumeLevel( volItfs[playerId], -300); in CreatePlayer()
254 CheckErrPlyr(res, playerId); in CreatePlayer()
257 res = (*playItfs[playerId])->SetMarkerPosition(playItfs[playerId], 2000); in CreatePlayer()
258 CheckErrPlyr(res, playerId); in CreatePlayer()
259 res = (*playItfs[playerId])->SetPositionUpdatePeriod(playItfs[playerId], 500); in CreatePlayer()
260 CheckErrPlyr(res, playerId); in CreatePlayer()
261 res = (*playItfs[playerId])->SetCallbackEventsMask(playItfs[playerId], in CreatePlayer()
263 CheckErrPlyr(res, playerId); in CreatePlayer()
264 res = (*playItfs[playerId])->RegisterCallback(playItfs[playerId], PlayEventCallback, in CreatePlayer()
266 CheckErrPlyr(res, playerId); in CreatePlayer()
274 res = (*playItfs[playerId])->SetPlayState( playItfs[playerId], SL_PLAYSTATE_PAUSED ); in CreatePlayer()
275 CheckErrPlyr(res, playerId); in CreatePlayer()
281 res = (*prefetchItfs[playerId])->GetPrefetchStatus(prefetchItfs[playerId], &prefetchStatus); in CreatePlayer()
282 CheckErrPlyr(res, playerId); in CreatePlayer()
290 res = (*playItfs[playerId])->SetPlayState( playItfs[playerId], SL_PLAYSTATE_PLAYING ); in CreatePlayer()
291 CheckErrPlyr(res, playerId); in CreatePlayer()
295 res = (*playItfs[playerId])->GetDuration(playItfs[playerId], &durationInMsec); in CreatePlayer()
296 CheckErrPlyr(res, playerId); in CreatePlayer()