Lines Matching refs:res

63 void CheckErr( SLresult res )
65 if ( res != SL_RESULT_SUCCESS ) {
66 fprintf(stderr, "%u SL failure, exiting\n", res);
106 SLresult res;
126 res = (*sl)->GetInterface(sl, SL_IID_ENGINE, (void*)&EngineItf);
127 CheckErr(res);
141 res = (*EngineItf)->CreateOutputMix(EngineItf, &OutputMix, 0,
142 iidArray, required); CheckErr(res);
145 res = (*OutputMix)->Realize(OutputMix, SL_BOOLEAN_FALSE);
146 CheckErr(res);
165 res = (*EngineItf)->CreateAudioPlayer(EngineItf, &player,
166 &audioSource, &audioSink, 2, iidArray, required); CheckErr(res);
169 res = (*player)->Realize(player, SL_BOOLEAN_FALSE); CheckErr(res);
172 res = (*player)->GetInterface(player, SL_IID_PLAY, (void*)&playItf);
173 CheckErr(res);
175 res = (*player)->GetInterface(player, SL_IID_VOLUME, (void*)&volItf);
176 CheckErr(res);
178 res = (*player)->GetInterface(player, SL_IID_PREFETCHSTATUS, (void*)&prefetchItf);
179 CheckErr(res);
180 res = (*prefetchItf)->RegisterCallback(prefetchItf, PrefetchEventCallback, &prefetchItf);
181 CheckErr(res);
182 res = (*prefetchItf)->SetCallbackEventsMask(prefetchItf,
187 res = (*playItf)->GetDuration(playItf, &durationInMsec);
188 CheckErr(res);
191 res = (*volItf)->SetVolumeLevel( volItf, -300);
192 CheckErr(res);
196 res = (*playItf)->SetPlayState( playItf, SL_PLAYSTATE_PAUSED );
197 CheckErr(res);
216 res = (*playItf)->GetDuration(playItf, &durationInMsec);
217 CheckErr(res);
230 res = (*playItf)->SetPlayState( playItf, SL_PLAYSTATE_PLAYING );
231 CheckErr(res);
238 res = (*playItf)->GetPosition(playItf, &currentPositionInMsec);
239 CheckErr(res);
251 res = (*playItf)->SetPlayState(playItf, SL_PLAYSTATE_STOPPED);
252 CheckErr(res);
269 SLresult res;
278 res = slCreateEngine(&sl, 1, EngineOption, 0, NULL, NULL);
279 CheckErr(res);
282 res = (*sl)->Realize(sl, SL_BOOLEAN_FALSE);
283 CheckErr(res);