Lines Matching refs:res

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