Lines Matching refs:res

132     SLresult                   res;
152 res = (*sl)->GetInterface(sl, SL_IID_ENGINE, (void*)&EngineItf);
153 CheckErr(res);
167 res = (*EngineItf)->CreateOutputMix(EngineItf, &OutputMix, 0,
168 iidArray, required); CheckErr(res);
171 res = (*OutputMix)->Realize(OutputMix, SL_BOOLEAN_FALSE);
172 CheckErr(res);
191 res = (*EngineItf)->CreateAudioPlayer(EngineItf, &player, &audioSource, &audioSink,
192 MAX_NUMBER_INTERFACES, iidArray, required); CheckErr(res);
195 res = (*player)->Realize(player, SL_BOOLEAN_FALSE); CheckErr(res);
199 res = (*player)->GetInterface(player, SL_IID_PLAY, (void*)&playItf);
200 CheckErr(res);
202 res = (*player)->GetInterface(player, SL_IID_VOLUME, (void*)&volItf);
203 CheckErr(res);
205 res = (*player)->GetInterface(player, SL_IID_PREFETCHSTATUS, (void*)&prefetchItf);
206 CheckErr(res);
207 res = (*prefetchItf)->RegisterCallback(prefetchItf, PrefetchEventCallback, &prefetchItf);
208 CheckErr(res);
209 res = (*prefetchItf)->SetCallbackEventsMask(prefetchItf,
211 CheckErr(res);
217 res = (*playItf)->SetMarkerPosition(playItf, 2000);
218 CheckErr(res);
219 res = (*playItf)->SetPositionUpdatePeriod(playItf, 500);
220 CheckErr(res);
221 res = (*playItf)->SetCallbackEventsMask(playItf,
223 CheckErr(res);
224 res = (*playItf)->RegisterCallback(playItf, PlayEventCallback, NULL);
225 CheckErr(res);
229 res = (*playItf)->GetDuration(playItf, &durationInMsec);
230 CheckErr(res);
239 res = (*volItf)->SetVolumeLevel( volItf, -300);
240 CheckErr(res);
245 res = (*playItf)->SetPlayState( playItf, SL_PLAYSTATE_PAUSED );
247 CheckErr(res);
267 res = (*playItf)->GetDuration(playItf, &durationInMsec);
268 CheckErr(res);
276 res = (*playItf)->SetPlayState( playItf, SL_PLAYSTATE_PLAYING );
277 CheckErr(res);
310 res = (*playItf)->SetPlayState(playItf, SL_PLAYSTATE_STOPPED);
311 CheckErr(res);
325 SLresult res;
343 res = slCreateEngine( &sl, 1, EngineOption, 0, NULL, NULL);
344 CheckErr(res);
346 res = (*sl)->Realize(sl, SL_BOOLEAN_FALSE);
347 CheckErr(res);