Lines Matching refs:res
69 SLresult res = (*caller)->GetFillLevel(caller, &level); CheckErr(res);
72 res = (*caller)->GetPrefetchStatus(caller, &status); CheckErr(res);
96 SLresult res;
100 res = (*caller)->GetPosition(caller, &posMsec); CheckErr(res);
113 res = (*caller)->GetPosition(caller, &posMsec); CheckErr(res);
118 res = (*caller)->GetPosition(caller, &posMsec); CheckErr(res);
131 SLresult res;
156 res = (*sl)->GetInterface(sl, SL_IID_ENGINE, (void*)&EngineItf);
157 CheckErr(res);
171 res = (*EngineItf)->CreateOutputMix(EngineItf, &OutputMix, 0,
172 iidArray, required); CheckErr(res);
175 res = (*OutputMix)->Realize(OutputMix, SL_BOOLEAN_FALSE);
176 CheckErr(res);
195 res = (*EngineItf)->CreateAudioPlayer(EngineItf, &player, &audioSource, &audioSink,
196 NUM_EXPLICIT_INTERFACES_FOR_PLAYER, iidArray, required); CheckErr(res);
199 res = (*player)->Realize(player, SL_BOOLEAN_FALSE); CheckErr(res);
203 res = (*player)->GetInterface(player, SL_IID_PLAY, (void*)&playItf);
204 CheckErr(res);
206 res = (*player)->GetInterface(player, SL_IID_VOLUME, (void*)&volItf);
207 CheckErr(res);
209 res = (*player)->GetInterface(player, SL_IID_PREFETCHSTATUS, (void*)&prefetchItf);
210 CheckErr(res);
211 res = (*prefetchItf)->RegisterCallback(prefetchItf, PrefetchEventCallback, &prefetchItf);
212 CheckErr(res);
213 res = (*prefetchItf)->SetCallbackEventsMask(prefetchItf,
215 CheckErr(res);
218 res = (*prefetchItf)->SetFillUpdatePeriod(prefetchItf, 50); CheckErr(res);
221 res = (*playItf)->SetMarkerPosition(playItf, 2000);
222 CheckErr(res);
223 res = (*playItf)->SetPositionUpdatePeriod(playItf, 500);
224 CheckErr(res);
225 res = (*playItf)->SetCallbackEventsMask(playItf,
227 CheckErr(res);
228 res = (*playItf)->RegisterCallback(playItf, PlayEventCallback, NULL);
229 CheckErr(res);
232 res = (*volItf)->SetVolumeLevel( volItf, -300);
233 CheckErr(res);
238 res = (*playItf)->SetPlayState( playItf, SL_PLAYSTATE_PAUSED ); CheckErr(res);
257 res = (*playItf)->GetDuration(playItf, &durationInMsec); CheckErr(res);
266 res = (*playItf)->SetPlayState( playItf, SL_PLAYSTATE_PLAYING ); CheckErr(res);
272 res = (*playItf)->GetPosition(playItf, &posInMsec); CheckErr(res);
298 res = (*playItf)->SetPlayState(playItf, SL_PLAYSTATE_STOPPED); CheckErr(res);
313 SLresult res;
331 res = slCreateEngine( &sl, 1, EngineOption, 0, NULL, NULL);
332 CheckErr(res);
334 res = (*sl)->Realize(sl, SL_BOOLEAN_FALSE);
335 CheckErr(res);