Lines Matching refs:result

36 void ExitOnErrorFunc( SLresult result , int line)
38 if (SL_RESULT_SUCCESS != result) {
39 fprintf(stdout, "%u error code encountered at line %d, exiting\n", result, line);
50 SLresult result;
76 result = (*sl)->GetInterface(sl, SL_IID_ENGINE, (void*)&EngineItf);
77 ExitOnError(result);
89 result = (*EngineItf)->CreateOutputMix(EngineItf, &outputMix, 0, iidArray, required);
90 ExitOnError(result);
93 result = (*outputMix)->Realize(outputMix, SL_BOOLEAN_FALSE);
94 ExitOnError(result);
128 result = (*EngineItf)->CreateAudioPlayer(EngineItf, &player, &audioSource, &audioSink,
130 ExitOnError(result);
136 result = (*player)->GetInterface(player, SL_IID_ANDROIDCONFIGURATION, (void*)&configItf);
137 ExitOnError(result);
140 result = (*configItf)->SetConfiguration(configItf,
142 if (SL_RESULT_PARAMETER_INVALID == result) {
145 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);
166 result = (*playItf)->SetPlayState( playItf, SL_PLAYSTATE_PAUSED );
167 ExitOnError(result);
174 ExitOnError(result);
179 result = (*playItf)->GetDuration(playItf, &durationInMsec);
180 ExitOnError(result);
186 result = (*playItf)->SetPlayState( playItf, SL_PLAYSTATE_PLAYING );
187 ExitOnError(result);
195 result = (*configItf)->GetConfiguration(configItf,
197 ExitOnError(result);
202 result = (*configItf)->GetConfiguration(configItf,
204 ExitOnError(result);
214 result = (*playItf)->SetPlayState(playItf, SL_PLAYSTATE_STOPPED);
215 ExitOnError(result);
219 result = (*configItf)->GetConfiguration(configItf,
221 ExitOnError(result);
237 SLresult result;
258 result = slCreateEngine( &sl, 1, EngineOption, 0, NULL, NULL);
259 ExitOnError(result);
262 result = (*sl)->Realize(sl, SL_BOOLEAN_FALSE);
263 ExitOnError(result);