Lines Matching refs:result

40 void ExitOnErrorFunc( SLresult result , int line)  in ExitOnErrorFunc()  argument
42 if (SL_RESULT_SUCCESS != result) { in ExitOnErrorFunc()
43 fprintf(stdout, "%u error code encountered at line %d, exiting\n", result, line); in ExitOnErrorFunc()
55 SLresult result; in PrefetchEventCallback() local
56 result = (*caller)->GetFillLevel(caller, &level); in PrefetchEventCallback()
57 ExitOnError(result); in PrefetchEventCallback()
59 result = (*caller)->GetPrefetchStatus(caller, &status); in PrefetchEventCallback()
60 ExitOnError(result); in PrefetchEventCallback()
73 SLresult result; in TestPlayPathFromFD() local
96 result = (*sl)->GetInterface(sl, SL_IID_ENGINE, (void*)&EngineItf); in TestPlayPathFromFD()
97 ExitOnError(result); in TestPlayPathFromFD()
109 result = (*EngineItf)->CreateOutputMix(EngineItf, &outputMix, 0, iidArray, required); in TestPlayPathFromFD()
110 ExitOnError(result); in TestPlayPathFromFD()
113 result = (*outputMix)->Realize(outputMix, SL_BOOLEAN_FALSE); in TestPlayPathFromFD()
114 ExitOnError(result); in TestPlayPathFromFD()
151 result = (*EngineItf)->CreateAudioPlayer(EngineItf, &player, &audioSource, &audioSink, 1, in TestPlayPathFromFD()
153 ExitOnError(result); in TestPlayPathFromFD()
156 result = (*player)->Realize(player, SL_BOOLEAN_FALSE); ExitOnError(result); in TestPlayPathFromFD()
160 result = (*player)->GetInterface(player, SL_IID_PLAY, (void*)&playItf); in TestPlayPathFromFD()
161 ExitOnError(result); in TestPlayPathFromFD()
163 result = (*player)->GetInterface(player, SL_IID_PREFETCHSTATUS, (void*)&prefetchItf); in TestPlayPathFromFD()
164 ExitOnError(result); in TestPlayPathFromFD()
167 result = (*prefetchItf)->RegisterCallback(prefetchItf, PrefetchEventCallback, &prefetchItf); in TestPlayPathFromFD()
168 ExitOnError(result); in TestPlayPathFromFD()
169 result = (*prefetchItf)->SetCallbackEventsMask(prefetchItf, PREFETCHEVENT_ERROR_CANDIDATE); in TestPlayPathFromFD()
170 ExitOnError(result); in TestPlayPathFromFD()
178 result = (*playItf)->SetPlayState( playItf, SL_PLAYSTATE_PAUSED ); in TestPlayPathFromFD()
179 ExitOnError(result); in TestPlayPathFromFD()
185 result = (*prefetchItf)->GetPrefetchStatus(prefetchItf, &prefetchStatus); in TestPlayPathFromFD()
186 ExitOnError(result); in TestPlayPathFromFD()
195 result = (*playItf)->GetDuration(playItf, &durationInMsec); in TestPlayPathFromFD()
196 ExitOnError(result); in TestPlayPathFromFD()
202 result = (*playItf)->SetPlayState( playItf, SL_PLAYSTATE_PLAYING ); in TestPlayPathFromFD()
203 ExitOnError(result); in TestPlayPathFromFD()
209 result = (*playItf)->SetPlayState(playItf, SL_PLAYSTATE_STOPPED); in TestPlayPathFromFD()
210 ExitOnError(result); in TestPlayPathFromFD()
224 SLresult result; in main() local
243 result = slCreateEngine( &sl, 1, EngineOption, 0, NULL, NULL); in main()
244 ExitOnError(result); in main()
247 result = (*sl)->Realize(sl, SL_BOOLEAN_FALSE); in main()
248 ExitOnError(result); in main()