Lines Matching refs:res
209 SLresult res = (*caller)->GetPosition(caller, &position); in PlayCallback() local
210 ExitOnError(res); in PlayCallback()
241 SLresult res; in AndroidBufferQueueCallback() local
273 res = (*caller)->Enqueue(caller, (void *)&kEosBufferCntxt /*pBufferContext*/, in AndroidBufferQueueCallback()
277 ExitOnError(res); in AndroidBufferQueueCallback()
288 res = (*caller)->Enqueue(caller, NULL /*pBufferContext*/, in AndroidBufferQueueCallback()
290 ExitOnError(res); in AndroidBufferQueueCallback()
332 SLresult res; in DecPlayCallback() local
333 res = (*queueItf)->Enqueue(queueItf, pCntxt->pData, BUFFER_SIZE_IN_BYTES); in DecPlayCallback()
334 ExitOnError(res); in DecPlayCallback()
354 res = (*pCntxt->metaItf)->GetValue(pCntxt->metaItf, sampleRateKeyIndex, in DecPlayCallback()
355 PCM_METADATA_VALUE_SIZE, &u.pcmMetaData); ExitOnError(res); in DecPlayCallback()
361 res = (*pCntxt->metaItf)->GetValue(pCntxt->metaItf, channelCountKeyIndex, in DecPlayCallback()
362 PCM_METADATA_VALUE_SIZE, &u.pcmMetaData); ExitOnError(res); in DecPlayCallback()
364 res = (*pCntxt->metaItf)->GetValue(pCntxt->metaItf, bitsPerSampleKeyIndex, in DecPlayCallback()
365 PCM_METADATA_VALUE_SIZE, &u.pcmMetaData); ExitOnError(res); in DecPlayCallback()
367 res = (*pCntxt->metaItf)->GetValue(pCntxt->metaItf, containerSizeKeyIndex, in DecPlayCallback()
368 PCM_METADATA_VALUE_SIZE, &u.pcmMetaData); ExitOnError(res); in DecPlayCallback()
370 res = (*pCntxt->metaItf)->GetValue(pCntxt->metaItf, channelMaskKeyIndex, in DecPlayCallback()
371 PCM_METADATA_VALUE_SIZE, &u.pcmMetaData); ExitOnError(res); in DecPlayCallback()
374 res = (*pCntxt->metaItf)->GetValue(pCntxt->metaItf, endiannessKeyIndex, in DecPlayCallback()
375 PCM_METADATA_VALUE_SIZE, &u.pcmMetaData); ExitOnError(res); in DecPlayCallback()
387 res = (*pCntxt->playItf)->GetPosition(pCntxt->playItf, &position); in DecPlayCallback()
388 ExitOnError(res); in DecPlayCallback()
390 res = (*pCntxt->playItf)->GetDuration(pCntxt->playItf, &duration); in DecPlayCallback()
391 ExitOnError(res); in DecPlayCallback()
457 SLresult res; in TestDecToBuffQueue() local
480 res = (*sl)->GetInterface(sl, SL_IID_ENGINE, (void*)&EngineItf); in TestDecToBuffQueue()
481 ExitOnError(res); in TestDecToBuffQueue()
532 res = (*EngineItf)->CreateAudioPlayer(EngineItf, &player, &decSource, &decDest, in TestDecToBuffQueue()
539 ExitOnError(res); in TestDecToBuffQueue()
543 res = (*player)->Realize(player, SL_BOOLEAN_FALSE); in TestDecToBuffQueue()
544 ExitOnError(res); in TestDecToBuffQueue()
548 res = (*player)->GetInterface(player, SL_IID_PLAY, (void*)&playItf); in TestDecToBuffQueue()
549 ExitOnError(res); in TestDecToBuffQueue()
552 res = (*playItf)->SetMarkerPosition(playItf, 5000); in TestDecToBuffQueue()
553 ExitOnError(res); in TestDecToBuffQueue()
556 res = (*playItf)->SetPositionUpdatePeriod(playItf, 3000); in TestDecToBuffQueue()
557 ExitOnError(res); in TestDecToBuffQueue()
560 res = (*playItf)->SetCallbackEventsMask(playItf, in TestDecToBuffQueue()
562 ExitOnError(res); in TestDecToBuffQueue()
563 res = (*playItf)->RegisterCallback(playItf, PlayCallback /*callback*/, NULL /*pContext*/); in TestDecToBuffQueue()
564 ExitOnError(res); in TestDecToBuffQueue()
568 res = (*playItf)->GetPosition(playItf, &position); in TestDecToBuffQueue()
569 ExitOnError(res); in TestDecToBuffQueue()
580 res = (*playItf)->GetDuration(playItf, &duration); in TestDecToBuffQueue()
581 ExitOnError(res); in TestDecToBuffQueue()
589 res = (*player)->GetInterface(player, SL_IID_ANDROIDSIMPLEBUFFERQUEUE, (void*)&decBuffQueueItf); in TestDecToBuffQueue()
590 ExitOnError(res); in TestDecToBuffQueue()
593 res = (*player)->GetInterface(player, SL_IID_ANDROIDBUFFERQUEUESOURCE, (void*)&aacBuffQueueItf); in TestDecToBuffQueue()
594 ExitOnError(res); in TestDecToBuffQueue()
597 res = (*player)->GetInterface(player, SL_IID_PREFETCHSTATUS, (void*)&prefetchItf); in TestDecToBuffQueue()
598 ExitOnError(res); in TestDecToBuffQueue()
602 res = (*player)->GetInterface(player, SL_IID_METADATAEXTRACTION, (void*)&mdExtrItf); in TestDecToBuffQueue()
603 ExitOnError(res); in TestDecToBuffQueue()
615 res = (*decBuffQueueItf)->RegisterCallback(decBuffQueueItf, DecPlayCallback, &sinkCntxt); in TestDecToBuffQueue()
616 ExitOnError(res); in TestDecToBuffQueue()
622 res = (*decBuffQueueItf)->Enqueue(decBuffQueueItf, sinkCntxt.pData, BUFFER_SIZE_IN_BYTES); in TestDecToBuffQueue()
623 ExitOnError(res); in TestDecToBuffQueue()
634 res = (*prefetchItf)->RegisterCallback(prefetchItf, PrefetchEventCallback, NULL); in TestDecToBuffQueue()
635 ExitOnError(res); in TestDecToBuffQueue()
636 res = (*prefetchItf)->SetCallbackEventsMask(prefetchItf, PREFETCHEVENT_ERROR_CANDIDATE); in TestDecToBuffQueue()
637 ExitOnError(res); in TestDecToBuffQueue()
640 res = (*aacBuffQueueItf)->RegisterCallback(aacBuffQueueItf, AndroidBufferQueueCallback, NULL); in TestDecToBuffQueue()
641 ExitOnError(res); in TestDecToBuffQueue()
655 res = (*aacBuffQueueItf)->Enqueue(aacBuffQueueItf, NULL /*pBufferContext*/, in TestDecToBuffQueue()
657 ExitOnError(res); in TestDecToBuffQueue()
675 res = (*mdExtrItf)->GetItemCount(mdExtrItf, &itemCount); in TestDecToBuffQueue()
676 ExitOnError(res); in TestDecToBuffQueue()
683 res = (*mdExtrItf)->GetKeySize(mdExtrItf, i, &keySize); in TestDecToBuffQueue()
684 ExitOnError(res); in TestDecToBuffQueue()
685 res = (*mdExtrItf)->GetValueSize(mdExtrItf, i, &valueSize); in TestDecToBuffQueue()
686 ExitOnError(res); in TestDecToBuffQueue()
689 res = (*mdExtrItf)->GetKey(mdExtrItf, i, keySize, keyInfo); in TestDecToBuffQueue()
690 ExitOnError(res); in TestDecToBuffQueue()
753 res = (*playItf)->SetPlayState(playItf, SL_PLAYSTATE_PAUSED); in TestDecToBuffQueue()
754 ExitOnError(res); in TestDecToBuffQueue()
772 res = (*playItf)->SetPlayState(playItf, SL_PLAYSTATE_PLAYING); in TestDecToBuffQueue()
773 ExitOnError(res); in TestDecToBuffQueue()
784 res = (*playItf)->SetPlayState(playItf, SL_PLAYSTATE_PAUSED); in TestDecToBuffQueue()
785 ExitOnError(res); in TestDecToBuffQueue()
788 res = (*playItf)->SetPlayState(playItf, SL_PLAYSTATE_PLAYING); in TestDecToBuffQueue()
789 ExitOnError(res); in TestDecToBuffQueue()
819 res = (*playItf)->GetPosition(playItf, &position); in TestDecToBuffQueue()
820 ExitOnError(res); in TestDecToBuffQueue()
821 res = (*playItf)->GetDuration(playItf, &duration); in TestDecToBuffQueue()
822 ExitOnError(res); in TestDecToBuffQueue()
857 SLresult res; in main() local
880 res = slCreateEngine( &sl, 1, EngineOption, 0, NULL, NULL); in main()
881 ExitOnError(res); in main()
884 res = (*sl)->Realize(sl, SL_BOOLEAN_FALSE); in main()
885 ExitOnError(res); in main()