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);
52 SLresult result;
80 result = (*sl)->GetInterface(sl, SL_IID_ENGINE, (void*)&EngineItf);
81 ExitOnError(result);
93 result = (*EngineItf)->CreateOutputMix(EngineItf, &outputMix, 1, iidArray, required);
94 ExitOnError(result);
97 result = (*outputMix)->Realize(outputMix, SL_BOOLEAN_FALSE);
98 ExitOnError(result);
145 result = (*EngineItf)->CreateAudioPlayer(EngineItf, &player, &audioSource, &audioSink, 2,
147 ExitOnError(result);
150 result = (*player)->Realize(player, SL_BOOLEAN_FALSE); ExitOnError(result);
154 result = (*player)->GetInterface(player, SL_IID_PLAY, (void*)&playItf);
155 ExitOnError(result);
157 result = (*player)->GetInterface(player, SL_IID_PREFETCHSTATUS, (void*)&prefetchItf);
158 ExitOnError(result);
160 result = (*player)->GetInterface(player, SL_IID_BASSBOOST, (void*)&bbItf);
161 ExitOnError(result);
169 result = (*playItf)->SetPlayState( playItf, SL_PLAYSTATE_PAUSED );
170 ExitOnError(result);
177 ExitOnError(result);
182 result = (*playItf)->GetDuration(playItf, &durationInMsec);
183 ExitOnError(result);
190 result = (*playItf)->SetPlayState(playItf, SL_PLAYSTATE_PLAYING );
191 ExitOnError(result);
195 result = (*bbItf)->IsStrengthSupported(bbItf, &strengthSupported);
196 ExitOnError(result);
201 result = (*bbItf)->SetStrength(bbItf, boostStrength);
202 ExitOnError(result);
206 result = (*bbItf)->GetRoundedStrength(bbItf, &strength);
207 ExitOnError(result);
215 result = (*bbItf)->IsEnabled(bbItf, &enabled);
216 ExitOnError(result);
219 result = (*bbItf)->SetEnabled(bbItf, enabled);
220 ExitOnError(result);
233 result = (*playItf)->SetPlayState(playItf, SL_PLAYSTATE_STOPPED);
234 ExitOnError(result);
251 SLresult result;
280 result = slCreateEngine( &sl, 1, EngineOption, 0, NULL, NULL);
281 ExitOnError(result);
284 result = (*sl)->Realize(sl, SL_BOOLEAN_FALSE);
285 ExitOnError(result);