Lines Matching refs:result

39 void ExitOnErrorFunc( SLresult result , int line)
41 if (SL_RESULT_SUCCESS != result) {
42 fprintf(stderr, "%u error code encountered at line %d, exiting\n", result, line);
56 SLresult result;
59 result = (*caller)->GetFillLevel(caller, &level);
60 ExitOnError(result);
62 result = (*caller)->GetPrefetchStatus(caller, &status);
63 ExitOnError(result);
76 SLresult result;
107 result = (*sl)->GetInterface(sl, SL_IID_ENGINE, (void*)&EngineItf);
108 ExitOnError(result);
124 result = (*EngineItf)->CreateOutputMix(EngineItf, &outputMix, 1, iidArray, required);
125 ExitOnError(result);
128 result = (*outputMix)->Realize(outputMix, SL_BOOLEAN_FALSE);
129 ExitOnError(result);
132 result = (*outputMix)->GetInterface(outputMix, SL_IID_PRESETREVERB, (void*)&reverbItf);
133 ExitOnError(result);
156 result = (*reverbItf)->SetPreset(reverbItf, preset);
157 ExitOnError(result);
201 result = (*EngineItf)->CreateAudioPlayer(EngineItf, &player, &audioSource, &audioSink, 3,
203 ExitOnError(result);
206 result = (*player)->Realize(player, SL_BOOLEAN_FALSE); ExitOnError(result);
210 result = (*player)->GetInterface(player, SL_IID_PLAY, (void*)&playItf);
211 ExitOnError(result);
213 result = (*player)->GetInterface(player, SL_IID_PREFETCHSTATUS, (void*)&prefetchItf);
214 ExitOnError(result);
215 result = (*prefetchItf)->RegisterCallback(prefetchItf, prefetch_callback, NULL);
216 ExitOnError(result);
217 result = (*prefetchItf)->SetCallbackEventsMask(prefetchItf,
219 ExitOnError(result);
221 result = (*player)->GetInterface(player, SL_IID_EFFECTSEND, (void*)&effectSendItf);
222 ExitOnError(result);
224 result = (*player)->GetInterface(player, SL_IID_SEEK, (void*)&seekItf);
225 ExitOnError(result);
233 result = (*playItf)->SetPlayState( playItf, SL_PLAYSTATE_PAUSED );
234 ExitOnError(result);
245 ExitOnError(result);
250 result = (*playItf)->GetDuration(playItf, &durationInMsec);
251 ExitOnError(result);
260 result = (*effectSendItf)->EnableEffectSend(effectSendItf, reverbItf, SL_BOOLEAN_TRUE,
262 ExitOnError(result);
264 result = (*effectSendItf)->SetDirectLevel(effectSendItf, directLevel);
265 ExitOnError(result);
268 result = (*effectSendItf)->SetSendLevel(effectSendItf, reverbItf, sendLevel);
269 ExitOnError(result);
274 result = (*seekItf)->SetLoop(seekItf, SL_BOOLEAN_TRUE, (SLmillisecond) 0, SL_TIME_UNKNOWN);
275 ExitOnError(result);
279 result = (*playItf)->SetPlayState( playItf, SL_PLAYSTATE_PLAYING );
280 ExitOnError(result);
286 result = (*playItf)->GetPlayState(playItf, &playState);
287 ExitOnError(result);
293 result = (*reverbItf)->SetPreset(reverbItf, enabled ? preset : SL_REVERBPRESET_NONE);
294 fprintf(stdout, "SetPreset(%d)=%d\n", enabled ? preset : SL_REVERBPRESET_NONE, result);
295 ExitOnError(result);
310 result = (*playItf)->SetPlayState(playItf, SL_PLAYSTATE_STOPPED);
311 ExitOnError(result);
330 SLresult result;
372 result = slCreateEngine( &sl, 1, EngineOption, 0, NULL, NULL);
373 ExitOnError(result);
376 result = (*sl)->Realize(sl, SL_BOOLEAN_FALSE);
377 ExitOnError(result);