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);
57 SLresult result;
85 result = (*sl)->GetInterface(sl, SL_IID_ENGINE, (void*)&EngineItf);
86 ExitOnError(result);
98 result = (*EngineItf)->CreateOutputMix(EngineItf, &outputMix, 1, iidArray, required);
99 ExitOnError(result);
102 result = (*outputMix)->Realize(outputMix, SL_BOOLEAN_FALSE);
103 ExitOnError(result);
150 result = (*EngineItf)->CreateAudioPlayer(EngineItf, &player, &audioSource, &audioSink, 2,
152 ExitOnError(result);
155 result = (*player)->Realize(player, SL_BOOLEAN_FALSE); ExitOnError(result);
159 result = (*player)->GetInterface(player, SL_IID_PLAY, (void*)&playItf);
160 ExitOnError(result);
162 result = (*player)->GetInterface(player, SL_IID_PREFETCHSTATUS, (void*)&prefetchItf);
163 ExitOnError(result);
165 result = (*player)->GetInterface(player, SL_IID_EQUALIZER, (void*)&eqItf);
166 ExitOnError(result);
174 result = (*playItf)->SetPlayState( playItf, SL_PLAYSTATE_PAUSED );
175 ExitOnError(result);
182 ExitOnError(result);
187 result = (*playItf)->GetDuration(playItf, &durationInMsec);
188 ExitOnError(result);
195 result = (*playItf)->SetPlayState(playItf, SL_PLAYSTATE_PLAYING );
196 ExitOnError(result);
200 result = (*eqItf)->GetNumberOfBands(eqItf, &nbBands);
201 ExitOnError(result);
202 result = (*eqItf)->GetNumberOfPresets(eqItf, &nbPresets);
203 ExitOnError(result);
206 result = (*eqItf)->UsePreset(eqItf, preset);
209 result = (*eqItf)->GetCurrentPreset(eqItf, &preset);
210 ExitOnError(result);
219 result = (*eqItf)->GetBandLevelRange(eqItf, &minLevel, &maxLevel);
220 ExitOnError(result);
225 result = (*eqItf)->SetBandLevel(eqItf, b, minLevel);
226 ExitOnError(result);
229 result = (*eqItf)->SetBandLevel(eqItf, b, maxLevel);
230 ExitOnError(result);
235 result = (*eqItf)->GetBandLevel(eqItf, b, &level);
236 ExitOnError(result);
244 result = (*eqItf)->IsEnabled(eqItf, &enabled);
245 ExitOnError(result);
248 result = (*eqItf)->SetEnabled(eqItf, enabled);
249 ExitOnError(result);
262 result = (*playItf)->SetPlayState(playItf, SL_PLAYSTATE_STOPPED);
263 ExitOnError(result);
280 SLresult result;
314 result = slCreateEngine( &sl, 1, EngineOption, 0, NULL, NULL);
315 ExitOnError(result);
318 result = (*sl)->Realize(sl, SL_BOOLEAN_FALSE);
319 ExitOnError(result);