Lines Matching refs:result

97 void ExitOnErrorFunc( SLresult result , int line)
99 if (SL_RESULT_SUCCESS != result) {
100 fprintf(stderr, "Error code %u encountered at line %d, exiting\n", result, line);
130 SLresult result;
131 result = (*caller)->GetFillLevel(caller, &level);
132 ExitOnError(result);
135 result = (*caller)->GetPrefetchStatus(caller, &status);
136 ExitOnError(result);
151 SLresult result;
153 result = (*caller)->GetPosition(caller, &msec);
154 ExitOnError(result);
182 SLresult result = (*pCntxt->playItf)->GetPosition(pCntxt->playItf, &msec);
183 ExitOnError(result);
219 SLresult result = (*pCntxt->playItf)->GetDuration(pCntxt->playItf, &durationInMsec);
220 ExitOnError(result);
232 SLresult result = (*pCntxt->playItf)->GetPosition(pCntxt->playItf, &posMsec);
233 ExitOnError(result);
276 SLresult result;
302 result = (*sl)->GetInterface(sl, SL_IID_ENGINE, (void*)&EngineItf);
303 ExitOnError(result);
359 result = (*EngineItf)->CreateAudioPlayer(EngineItf, &player, &decSource, &decDest,
361 ExitOnError(result);
365 result = (*player)->Realize(player, SL_BOOLEAN_FALSE);
366 ExitOnError(result);
370 result = (*player)->GetInterface(player, SL_IID_PLAY, (void*)&playItf);
371 ExitOnError(result);
375 result = (*playItf)->SetMarkerPosition(playItf, 2000);
376 ExitOnError(result);
377 result = (*playItf)->SetPositionUpdatePeriod(playItf, 500);
378 ExitOnError(result);
379 result = (*playItf)->SetCallbackEventsMask(playItf,
381 ExitOnError(result);
382 result = (*playItf)->RegisterCallback(playItf, DecProgressCallback, NULL);
383 ExitOnError(result);
387 result = (*player)->GetInterface(player, SL_IID_ANDROIDSIMPLEBUFFERQUEUE,
389 ExitOnError(result);
392 result = (*player)->GetInterface(player, SL_IID_PREFETCHSTATUS, (void*)&prefetchItf);
393 ExitOnError(result);
396 result = (*player)->GetInterface(player, SL_IID_METADATAEXTRACTION, (void*)&mdExtrItf);
397 ExitOnError(result);
407 result = (*decBuffQueueItf)->RegisterCallback(decBuffQueueItf, DecPlayCallback, &cntxt);
408 ExitOnError(result);
414 result = (*decBuffQueueItf)->Enqueue(decBuffQueueItf, cntxt.pData, BUFFER_SIZE_IN_BYTES);
415 ExitOnError(result);
423 result = (*prefetchItf)->RegisterCallback(prefetchItf, PrefetchEventCallback, &prefetchItf);
424 ExitOnError(result);
425 result = (*prefetchItf)->SetCallbackEventsMask(prefetchItf, PREFETCHEVENT_ERROR_CANDIDATE);
426 ExitOnError(result);
431 result = (*playItf)->SetPlayState( playItf, SL_PLAYSTATE_PAUSED );
432 ExitOnError(result);
450 result = (*playItf)->GetDuration(playItf, &durationInMsec);
451 ExitOnError(result);
464 result = (*mdExtrItf)->GetItemCount(mdExtrItf, &itemCount);
470 result = (*mdExtrItf)->GetKeySize(mdExtrItf, i, &keySize);
471 ExitOnError(result);
472 result = (*mdExtrItf)->GetValueSize(mdExtrItf, i, &valueSize);
473 ExitOnError(result);
476 result = (*mdExtrItf)->GetKey(mdExtrItf, i, keySize, keyInfo);
477 ExitOnError(result);
504 result = (*playItf)->SetPlayState(playItf, SL_PLAYSTATE_PLAYING);
505 ExitOnError(result);
521 result = (*playItf)->SetPlayState(playItf, SL_PLAYSTATE_STOPPED);
522 ExitOnError(result);
537 SLresult result;
554 result = slCreateEngine( &sl, 1, EngineOption, 0, NULL, NULL);
555 ExitOnError(result);
558 result = (*sl)->Realize(sl, SL_BOOLEAN_FALSE);
559 ExitOnError(result);