Lines Matching refs:res

129     SLresult                   res;  in TestPlayUri()  local
149 res = (*sl)->GetInterface(sl, SL_IID_ENGINE, (void*)&EngineItf); in TestPlayUri()
150 CheckErr(res); in TestPlayUri()
164 res = (*EngineItf)->CreateOutputMix(EngineItf, &OutputMix, 0, in TestPlayUri()
165 iidArray, required); CheckErr(res); in TestPlayUri()
168 res = (*OutputMix)->Realize(OutputMix, SL_BOOLEAN_FALSE); in TestPlayUri()
169 CheckErr(res); in TestPlayUri()
188 res = (*EngineItf)->CreateAudioPlayer(EngineItf, &player, &audioSource, &audioSink, in TestPlayUri()
189 MAX_NUMBER_INTERFACES, iidArray, required); CheckErr(res); in TestPlayUri()
192 res = (*player)->Realize(player, SL_BOOLEAN_FALSE); CheckErr(res); in TestPlayUri()
196 res = (*player)->GetInterface(player, SL_IID_PLAY, (void*)&playItf); in TestPlayUri()
197 CheckErr(res); in TestPlayUri()
199 res = (*player)->GetInterface(player, SL_IID_VOLUME, (void*)&volItf); in TestPlayUri()
200 CheckErr(res); in TestPlayUri()
202 res = (*player)->GetInterface(player, SL_IID_PREFETCHSTATUS, (void*)&prefetchItf); in TestPlayUri()
203 CheckErr(res); in TestPlayUri()
204 res = (*prefetchItf)->RegisterCallback(prefetchItf, PrefetchEventCallback, &prefetchItf); in TestPlayUri()
205 CheckErr(res); in TestPlayUri()
206 res = (*prefetchItf)->SetCallbackEventsMask(prefetchItf, in TestPlayUri()
208 CheckErr(res); in TestPlayUri()
214 res = (*playItf)->SetMarkerPosition(playItf, 2000); in TestPlayUri()
215 CheckErr(res); in TestPlayUri()
216 res = (*playItf)->SetPositionUpdatePeriod(playItf, 500); in TestPlayUri()
217 CheckErr(res); in TestPlayUri()
218 res = (*playItf)->SetCallbackEventsMask(playItf, in TestPlayUri()
220 CheckErr(res); in TestPlayUri()
221 res = (*playItf)->RegisterCallback(playItf, PlayEventCallback, NULL); in TestPlayUri()
222 CheckErr(res); in TestPlayUri()
226 res = (*playItf)->GetDuration(playItf, &durationInMsec); in TestPlayUri()
227 CheckErr(res); in TestPlayUri()
236 res = (*volItf)->SetVolumeLevel( volItf, -300); in TestPlayUri()
237 CheckErr(res); in TestPlayUri()
242 res = (*playItf)->SetPlayState( playItf, SL_PLAYSTATE_PAUSED ); in TestPlayUri()
244 CheckErr(res); in TestPlayUri()
264 res = (*playItf)->GetDuration(playItf, &durationInMsec); in TestPlayUri()
265 CheckErr(res); in TestPlayUri()
273 res = (*playItf)->SetPlayState( playItf, SL_PLAYSTATE_PLAYING ); in TestPlayUri()
274 CheckErr(res); in TestPlayUri()
307 res = (*playItf)->SetPlayState(playItf, SL_PLAYSTATE_STOPPED); in TestPlayUri()
308 CheckErr(res); in TestPlayUri()
322 SLresult res; in main() local
340 res = slCreateEngine( &sl, 1, EngineOption, 0, NULL, NULL); in main()
341 CheckErr(res); in main()
343 res = (*sl)->Realize(sl, SL_BOOLEAN_FALSE); in main()
344 CheckErr(res); in main()