Lines Matching refs:res
126 SLresult res; in TestLoopUri() local
146 res = (*sl)->GetInterface(sl, SL_IID_ENGINE, (void*)&EngineItf); in TestLoopUri()
147 CheckErr(res); in TestLoopUri()
158 res = (*EngineItf)->CreateOutputMix(EngineItf, &OutputMix, 0, in TestLoopUri()
159 iidArray, required); CheckErr(res); in TestLoopUri()
162 res = (*OutputMix)->Realize(OutputMix, SL_BOOLEAN_FALSE); in TestLoopUri()
163 CheckErr(res); in TestLoopUri()
186 res = (*EngineItf)->CreateAudioPlayer(EngineItf, &player, &audioSource, &audioSink, in TestLoopUri()
187 MAX_NUMBER_INTERFACES, iidArray, required); CheckErr(res); in TestLoopUri()
190 res = (*player)->Realize(player, SL_BOOLEAN_FALSE); CheckErr(res); in TestLoopUri()
194 res = (*player)->GetInterface(player, SL_IID_PLAY, (void*)&playItf); in TestLoopUri()
195 CheckErr(res); in TestLoopUri()
197 res = (*player)->GetInterface(player, SL_IID_SEEK, (void*)&seekItf); in TestLoopUri()
198 CheckErr(res); in TestLoopUri()
200 res = (*player)->GetInterface(player, SL_IID_PREFETCHSTATUS, (void*)&prefetchItf); in TestLoopUri()
201 CheckErr(res); in TestLoopUri()
202 res = (*prefetchItf)->RegisterCallback(prefetchItf, PrefetchEventCallback, NULL); in TestLoopUri()
203 CheckErr(res); in TestLoopUri()
204 res = (*prefetchItf)->SetCallbackEventsMask(prefetchItf, in TestLoopUri()
206 CheckErr(res); in TestLoopUri()
212 res = (*playItf)->SetCallbackEventsMask(playItf, SL_PLAYEVENT_HEADATEND); in TestLoopUri()
213 CheckErr(res); in TestLoopUri()
214 res = (*playItf)->RegisterCallback(playItf, PlayEventCallback, NULL); in TestLoopUri()
215 CheckErr(res); in TestLoopUri()
219 res = (*playItf)->GetDuration(playItf, &durationInMsec); in TestLoopUri()
220 CheckErr(res); in TestLoopUri()
229 res = (*seekItf)->SetLoop(seekItf, SL_BOOLEAN_TRUE, 0, SL_TIME_UNKNOWN); in TestLoopUri()
230 CheckErr(res); in TestLoopUri()
234 res = (*playItf)->SetPlayState( playItf, SL_PLAYSTATE_PAUSED ); in TestLoopUri()
235 CheckErr(res); in TestLoopUri()
249 res = (*playItf)->GetDuration(playItf, &durationInMsec); in TestLoopUri()
250 CheckErr(res); in TestLoopUri()
259 res = (*playItf)->SetPlayState( playItf, SL_PLAYSTATE_PLAYING ); in TestLoopUri()
260 CheckErr(res); in TestLoopUri()
265 res = (*seekItf)->SetLoop(seekItf, SL_BOOLEAN_FALSE, 0, SL_TIME_UNKNOWN); in TestLoopUri()
266 CheckErr(res); in TestLoopUri()
273 res = (*playItf)->SetPlayState(playItf, SL_PLAYSTATE_STOPPED); in TestLoopUri()
274 CheckErr(res); in TestLoopUri()
288 SLresult res; in main() local
306 res = slCreateEngine( &sl, 1, EngineOption, 0, NULL, NULL); in main()
307 CheckErr(res); in main()
309 res = (*sl)->Realize(sl, SL_BOOLEAN_FALSE); in main()
310 CheckErr(res); in main()