Lines Matching refs:res

129     SLresult                   res;
149 res = (*sl)->GetInterface(sl, SL_IID_ENGINE, (void*)&EngineItf);
150 CheckErr(res);
161 res = (*EngineItf)->CreateOutputMix(EngineItf, &OutputMix, 0,
162 iidArray, required); CheckErr(res);
165 res = (*OutputMix)->Realize(OutputMix, SL_BOOLEAN_FALSE);
166 CheckErr(res);
189 res = (*EngineItf)->CreateAudioPlayer(EngineItf, &player, &audioSource, &audioSink,
190 MAX_NUMBER_INTERFACES, iidArray, required); CheckErr(res);
193 res = (*player)->Realize(player, SL_BOOLEAN_FALSE); CheckErr(res);
197 res = (*player)->GetInterface(player, SL_IID_PLAY, (void*)&playItf);
198 CheckErr(res);
200 res = (*player)->GetInterface(player, SL_IID_SEEK, (void*)&seekItf);
201 CheckErr(res);
203 res = (*player)->GetInterface(player, SL_IID_PREFETCHSTATUS, (void*)&prefetchItf);
204 CheckErr(res);
205 res = (*prefetchItf)->RegisterCallback(prefetchItf, PrefetchEventCallback, NULL);
206 CheckErr(res);
207 res = (*prefetchItf)->SetCallbackEventsMask(prefetchItf,
209 CheckErr(res);
215 res = (*playItf)->SetCallbackEventsMask(playItf, SL_PLAYEVENT_HEADATEND);
216 CheckErr(res);
217 res = (*playItf)->RegisterCallback(playItf, PlayEventCallback, NULL);
218 CheckErr(res);
222 res = (*playItf)->GetDuration(playItf, &durationInMsec);
223 CheckErr(res);
232 res = (*seekItf)->SetLoop(seekItf, SL_BOOLEAN_TRUE, 0, SL_TIME_UNKNOWN);
233 CheckErr(res);
237 res = (*playItf)->SetPlayState( playItf, SL_PLAYSTATE_PAUSED );
238 CheckErr(res);
252 res = (*playItf)->GetDuration(playItf, &durationInMsec);
253 CheckErr(res);
262 res = (*playItf)->SetPlayState( playItf, SL_PLAYSTATE_PLAYING );
263 CheckErr(res);
268 res = (*seekItf)->SetLoop(seekItf, SL_BOOLEAN_FALSE, 0, SL_TIME_UNKNOWN);
269 CheckErr(res);
276 res = (*playItf)->SetPlayState(playItf, SL_PLAYSTATE_STOPPED);
277 CheckErr(res);
291 SLresult res;
309 res = slCreateEngine( &sl, 1, EngineOption, 0, NULL, NULL);
310 CheckErr(res);
312 res = (*sl)->Realize(sl, SL_BOOLEAN_FALSE);
313 CheckErr(res);