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;
87 result = (*sl)->GetInterface(sl, SL_IID_ENGINE, (void*)&EngineItf);
88 ExitOnError(result);
104 result = (*EngineItf)->CreateOutputMix(EngineItf, &outputMix, 1, iidArray, required);
105 ExitOnError(result);
108 result = (*outputMix)->Realize(outputMix, SL_BOOLEAN_FALSE);
109 ExitOnError(result);
112 result = (*outputMix)->GetInterface(outputMix, SL_IID_EQUALIZER, (void*)&eqOutputItf);
157 result = (*EngineItf)->CreateAudioPlayer(EngineItf, &player, &audioSource, &audioSink, 1,
159 ExitOnError(result);
162 result = (*player)->Realize(player, SL_BOOLEAN_FALSE); ExitOnError(result);
166 result = (*player)->GetInterface(player, SL_IID_PLAY, (void*)&playItf);
167 ExitOnError(result);
169 result = (*player)->GetInterface(player, SL_IID_PREFETCHSTATUS, (void*)&prefetchItf);
170 ExitOnError(result);
178 result = (*playItf)->SetPlayState( playItf, SL_PLAYSTATE_PAUSED );
179 ExitOnError(result);
186 ExitOnError(result);
191 result = (*playItf)->GetDuration(playItf, &durationInMsec);
192 ExitOnError(result);
199 result = (*playItf)->SetPlayState(playItf, SL_PLAYSTATE_PLAYING );
200 ExitOnError(result);
204 result = (*eqOutputItf)->GetNumberOfBands(eqOutputItf, &nbBands);
205 ExitOnError(result);
206 result = (*eqOutputItf)->GetNumberOfPresets(eqOutputItf, &nbPresets);
207 ExitOnError(result);
210 result = (*eqOutputItf)->UsePreset(eqOutputItf, preset);
213 result = (*eqOutputItf)->GetCurrentPreset(eqOutputItf, &preset);
214 ExitOnError(result);
223 result = (*eqOutputItf)->GetBandLevelRange(eqOutputItf, &minLevel, &maxLevel);
224 ExitOnError(result);
229 result = (*eqOutputItf)->SetBandLevel(eqOutputItf, b, minLevel);
230 ExitOnError(result);
233 result = (*eqOutputItf)->SetBandLevel(eqOutputItf, b, maxLevel);
234 ExitOnError(result);
239 result = (*eqOutputItf)->GetBandLevel(eqOutputItf, b, &level);
240 ExitOnError(result);
248 result = (*eqOutputItf)->IsEnabled(eqOutputItf, &enabled);
249 ExitOnError(result);
252 result = (*eqOutputItf)->SetEnabled(eqOutputItf, enabled);
253 ExitOnError(result);
266 result = (*playItf)->SetPlayState(playItf, SL_PLAYSTATE_STOPPED);
267 ExitOnError(result);
284 SLresult result;
316 result = slCreateEngine( &sl, 1, EngineOption, 0, NULL, NULL);
317 ExitOnError(result);
320 result = (*sl)->Realize(sl, SL_BOOLEAN_FALSE);
321 ExitOnError(result);