Lines Matching refs:result

38 void ExitOnErrorFunc( SLresult result , int line)
40 if (SL_RESULT_SUCCESS != result) {
41 fprintf(stderr, "%u error code encountered at line %d, exiting\n", result, line);
53 SLresult result;
81 result = (*sl)->GetInterface(sl, SL_IID_ENGINE, (void*)&EngineItf);
82 ExitOnError(result);
94 result = (*EngineItf)->CreateOutputMix(EngineItf, &outputMix, 0, iidArray, required);
95 ExitOnError(result);
98 result = (*outputMix)->Realize(outputMix, SL_BOOLEAN_FALSE);
99 ExitOnError(result);
146 result = (*EngineItf)->CreateAudioPlayer(EngineItf, &player, &audioSource, &audioSink, 2,
148 ExitOnError(result);
151 result = (*player)->Realize(player, SL_BOOLEAN_FALSE); ExitOnError(result);
155 result = (*player)->GetInterface(player, SL_IID_PLAY, (void*)&playItf);
156 ExitOnError(result);
158 result = (*player)->GetInterface(player, SL_IID_PREFETCHSTATUS, (void*)&prefetchItf);
159 ExitOnError(result);
161 result = (*player)->GetInterface(player, SL_IID_VIRTUALIZER, (void*)&virtItf);
162 ExitOnError(result);
170 result = (*playItf)->SetPlayState( playItf, SL_PLAYSTATE_PAUSED );
171 ExitOnError(result);
178 ExitOnError(result);
183 result = (*playItf)->GetDuration(playItf, &durationInMsec);
184 ExitOnError(result);
191 result = (*playItf)->SetPlayState(playItf, SL_PLAYSTATE_PLAYING );
192 ExitOnError(result);
196 result = (*virtItf)->IsStrengthSupported(virtItf, &strengthSupported);
197 ExitOnError(result);
203 result = (*virtItf)->SetStrength(virtItf, virtStrength);
204 ExitOnError(result);
208 result = (*virtItf)->GetRoundedStrength(virtItf, &strength);
209 ExitOnError(result);
217 result = (*virtItf)->IsEnabled(virtItf, &enabled);
218 ExitOnError(result);
221 result = (*virtItf)->SetEnabled(virtItf, enabled);
222 ExitOnError(result);
235 result = (*playItf)->SetPlayState(playItf, SL_PLAYSTATE_STOPPED);
236 ExitOnError(result);
253 SLresult result;
282 result = slCreateEngine( &sl, 1, EngineOption, 0, NULL, NULL);
283 ExitOnError(result);
286 result = (*sl)->Realize(sl, SL_BOOLEAN_FALSE);
287 ExitOnError(result);