Lines Matching refs:res
75 SLresult res = (*pRateItf)->GetRate(pRateItf, &rate); CheckErr(res); in PlayEventCallback() local
76 res = (*pRateItf)->GetRateRange(pRateItf, 0, &minRate, &maxRate, &stepSize, &capa); in PlayEventCallback()
77 CheckErr(res); in PlayEventCallback()
84 res = (*pRateItf)->SetRate(pRateItf, rate); CheckErr(res); in PlayEventCallback()
85 if (res == SL_RESULT_FEATURE_UNSUPPORTED) { in PlayEventCallback()
88 CheckErr(res); in PlayEventCallback()
182 SLresult res; in TestSlowDownUri() local
203 res = (*sl)->GetInterface(sl, SL_IID_ENGINE, (void*)&EngineItf); CheckErr(res); in TestSlowDownUri()
214 res = (*EngineItf)->CreateOutputMix(EngineItf, &OutputMix, 0, in TestSlowDownUri()
215 iidArray, required); CheckErr(res); in TestSlowDownUri()
218 res = (*OutputMix)->Realize(OutputMix, SL_BOOLEAN_FALSE); CheckErr(res); in TestSlowDownUri()
244 res = (*EngineItf)->CreateAudioPlayer(EngineItf, &player, &audioSource, &audioSink, in TestSlowDownUri()
245 MAX_NUMBER_INTERFACES, iidArray, required); CheckErr(res); in TestSlowDownUri()
248 res = (*player)->Realize(player, SL_BOOLEAN_FALSE); CheckErr(res); in TestSlowDownUri()
252 res = (*player)->GetInterface(player, SL_IID_PLAY, (void*)&playItf); CheckErr(res); in TestSlowDownUri()
254 res = (*player)->GetInterface(player, SL_IID_SEEK, (void*)&seekItf); CheckErr(res); in TestSlowDownUri()
256 res = (*player)->GetInterface(player, SL_IID_PLAYBACKRATE, (void*)&rateItf); CheckErr(res); in TestSlowDownUri()
258 res = (*player)->GetInterface(player, SL_IID_PREFETCHSTATUS, (void*)&prefetchItf); in TestSlowDownUri()
259 CheckErr(res); in TestSlowDownUri()
260 res = (*prefetchItf)->RegisterCallback(prefetchItf, PrefetchEventCallback, NULL); in TestSlowDownUri()
261 CheckErr(res); in TestSlowDownUri()
262 res = (*prefetchItf)->SetCallbackEventsMask(prefetchItf, in TestSlowDownUri()
263 SL_PREFETCHEVENT_FILLLEVELCHANGE | SL_PREFETCHEVENT_STATUSCHANGE); CheckErr(res); in TestSlowDownUri()
266 (*prefetchItf)->SetFillUpdatePeriod(prefetchItf, 50); CheckErr(res); in TestSlowDownUri()
270 res = (*playItf)->GetDuration(playItf, &durationInMsec); CheckErr(res); in TestSlowDownUri()
279 res = (*seekItf)->SetLoop(seekItf, SL_BOOLEAN_TRUE, 0, SL_TIME_UNKNOWN); CheckErr(res); in TestSlowDownUri()
282 res = (*playItf)->RegisterCallback(playItf, PlayEventCallback, (void *) rateItf); in TestSlowDownUri()
283 CheckErr(res); in TestSlowDownUri()
284 res = (*playItf)->SetCallbackEventsMask(playItf, in TestSlowDownUri()
286 res = (*playItf)->SetMarkerPosition(playItf, 1500); CheckErr(res); in TestSlowDownUri()
287 res = (*playItf)->SetPositionUpdatePeriod(playItf, 500); CheckErr(res); in TestSlowDownUri()
291 res = (*rateItf)->GetRate(rateItf, &rate); CheckErr(res); in TestSlowDownUri()
297 res = (*rateItf)->GetProperties(rateItf, &properties); CheckErr(res); in TestSlowDownUri()
308 res = (*rateItf)->GetRateRange(rateItf, index, &minRate, &maxRate, &stepSize, in TestSlowDownUri()
310 if (res == SL_RESULT_PARAMETER_INVALID) { in TestSlowDownUri()
316 CheckErr(res); in TestSlowDownUri()
327 res = (*rateItf)->SetRate(rateItf, INITIAL_RATE); in TestSlowDownUri()
328 if (res == SL_RESULT_FEATURE_UNSUPPORTED || res == SL_RESULT_PARAMETER_INVALID) { in TestSlowDownUri()
331 CheckErr(res); in TestSlowDownUri()
337 res = (*playItf)->SetPlayState( playItf, SL_PLAYSTATE_PAUSED ); CheckErr(res); in TestSlowDownUri()
351 res = (*playItf)->GetDuration(playItf, &durationInMsec); CheckErr(res); in TestSlowDownUri()
360 res = (*playItf)->SetPlayState( playItf, SL_PLAYSTATE_PLAYING ); CheckErr(res); in TestSlowDownUri()
374 res = (*seekItf)->SetLoop(seekItf, SL_BOOLEAN_FALSE, 0, SL_TIME_UNKNOWN); CheckErr(res); in TestSlowDownUri()
381 res = (*playItf)->SetPlayState(playItf, SL_PLAYSTATE_STOPPED); CheckErr(res); in TestSlowDownUri()
395 SLresult res; in main() local
415 res = slCreateEngine( &sl, 1, EngineOption, 0, NULL, NULL); in main()
416 CheckErr(res); in main()
418 res = (*sl)->Realize(sl, SL_BOOLEAN_FALSE); in main()
419 CheckErr(res); in main()