Lines Matching refs:res

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