Lines Matching refs:result

43 void ExitOnErrorFunc( SLresult result , int line)
45 if (SL_RESULT_SUCCESS != result) {
46 fprintf(stdout, "%u error code encountered at line %d, exiting\n", result, line);
72 SLresult result;
75 result = (*caller)->GetFillLevel(caller, &level);
76 assert(SL_RESULT_SUCCESS == result);
78 result = (*caller)->GetPrefetchStatus(caller, &status);
79 assert(SL_RESULT_SUCCESS == result);
165 SLresult result;
189 result = (*sl)->GetInterface(sl, SL_IID_ENGINE, (void*)&EngineItf);
190 ExitOnError(result);
202 result = (*EngineItf)->CreateOutputMix(EngineItf, &outputMix, 0, iidArray, required);
203 ExitOnError(result);
206 result = (*outputMix)->Realize(outputMix, SL_BOOLEAN_FALSE);
207 ExitOnError(result);
238 result = (*EngineItf)->CreateAudioPlayer(EngineItf, &player, &audioSource, &audioSink, 2,
240 ExitOnError(result);
243 result = (*player)->Realize(player, SL_BOOLEAN_FALSE); ExitOnError(result);
247 result = (*player)->GetInterface(player, SL_IID_PLAY, (void*)&playItf);
248 ExitOnError(result);
251 result = (*player)->GetInterface(player, SL_IID_PREFETCHSTATUS, (void*)&prefetchItf);
252 ExitOnError(result);
255 result = (*prefetchItf)->RegisterCallback(prefetchItf, prefetch_callback, NULL);
256 assert(SL_RESULT_SUCCESS == result);
257 result = (*prefetchItf)->SetCallbackEventsMask(prefetchItf,
259 assert(SL_RESULT_SUCCESS == result);
262 result = (*player)->GetInterface(player, SL_IID_MUTESOLO, (void*)&muteSoloItf);
263 ExitOnError(result);
270 result = (*playItf)->GetDuration(playItf, &duration);
271 ExitOnError(result);
272 printf("GetDuration after Realize but before pre-fetch: result=%u, duration=%u\n",
273 result, duration);
279 result = (*muteSoloItf)->GetNumChannels(muteSoloItf, &numChannels);
280 printf("GetNumChannels after Realize but before pre-fetch: result=%u, numChannels=%u\n",
281 result, numChannels);
282 if (result != SL_RESULT_PRECONDITIONS_VIOLATED) {
283 ExitOnError(result);
296 result = (*playItf)->RegisterCallback(playItf, PlayEventCallback, (void *) &context);
297 ExitOnError(result);
298 result = (*playItf)->SetCallbackEventsMask(playItf, SL_PLAYEVENT_HEADATNEWPOS);
299 ExitOnError(result);
300 result = (*playItf)->SetPositionUpdatePeriod(playItf, 1000);
301 ExitOnError(result);
309 result = (*playItf)->SetPlayState( playItf, SL_PLAYSTATE_PAUSED );
310 ExitOnError(result);
324 result = (*playItf)->GetDuration(playItf, &duration);
325 printf("GetDuration after Realize and after pre-fetch: result=%u, duration=%u\n",
326 result, duration);
327 ExitOnError(result);
331 result = (*muteSoloItf)->GetNumChannels(muteSoloItf, &numChannels);
332 printf("GetNumChannels after Realize and after pre-fetch: result=%u, numChannels=%u\n",
333 result, numChannels);
334 ExitOnError(result);
342 result = (*muteSoloItf)->SetChannelMute(muteSoloItf, 0, SL_BOOLEAN_TRUE);
343 ExitOnError(result);
344 result = (*muteSoloItf)->SetChannelMute(muteSoloItf, 1, SL_BOOLEAN_FALSE);
345 ExitOnError(result);
352 result = (*playItf)->SetPlayState( playItf, SL_PLAYSTATE_PLAYING ); ExitOnError(result);
354 result = (*muteSoloItf)->SetChannelMute(muteSoloItf, 0, SL_BOOLEAN_FALSE); ExitOnError(result);
355 result = (*muteSoloItf)->SetChannelMute(muteSoloItf, 1, SL_BOOLEAN_FALSE); ExitOnError(result);
362 result = (*playItf)->SetPlayState(playItf, SL_PLAYSTATE_STOPPED);
363 ExitOnError(result);
377 SLresult result;
397 result = slCreateEngine( &sl, 1, EngineOption, 0, NULL, NULL);
398 ExitOnError(result);
401 result = (*sl)->Realize(sl, SL_BOOLEAN_FALSE);
402 ExitOnError(result);