Lines Matching refs:result
38 void ExitOnErrorFunc( SLresult result , int line) in ExitOnErrorFunc() argument
40 if (SL_RESULT_SUCCESS != result) { in ExitOnErrorFunc()
41 fprintf(stderr, "%u error code encountered at line %d, exiting\n", result, line); in ExitOnErrorFunc()
57 SLresult result; in TestEQPathFromFD() local
85 result = (*sl)->GetInterface(sl, SL_IID_ENGINE, (void*)&EngineItf); in TestEQPathFromFD()
86 ExitOnError(result); in TestEQPathFromFD()
98 result = (*EngineItf)->CreateOutputMix(EngineItf, &outputMix, 1, iidArray, required); in TestEQPathFromFD()
99 ExitOnError(result); in TestEQPathFromFD()
102 result = (*outputMix)->Realize(outputMix, SL_BOOLEAN_FALSE); in TestEQPathFromFD()
103 ExitOnError(result); in TestEQPathFromFD()
150 result = (*EngineItf)->CreateAudioPlayer(EngineItf, &player, &audioSource, &audioSink, 2, in TestEQPathFromFD()
152 ExitOnError(result); in TestEQPathFromFD()
155 result = (*player)->Realize(player, SL_BOOLEAN_FALSE); ExitOnError(result); in TestEQPathFromFD()
159 result = (*player)->GetInterface(player, SL_IID_PLAY, (void*)&playItf); in TestEQPathFromFD()
160 ExitOnError(result); in TestEQPathFromFD()
162 result = (*player)->GetInterface(player, SL_IID_PREFETCHSTATUS, (void*)&prefetchItf); in TestEQPathFromFD()
163 ExitOnError(result); in TestEQPathFromFD()
165 result = (*player)->GetInterface(player, SL_IID_EQUALIZER, (void*)&eqItf); in TestEQPathFromFD()
166 ExitOnError(result); in TestEQPathFromFD()
174 result = (*playItf)->SetPlayState( playItf, SL_PLAYSTATE_PAUSED ); in TestEQPathFromFD()
175 ExitOnError(result); in TestEQPathFromFD()
182 ExitOnError(result); in TestEQPathFromFD()
187 result = (*playItf)->GetDuration(playItf, &durationInMsec); in TestEQPathFromFD()
188 ExitOnError(result); in TestEQPathFromFD()
195 result = (*playItf)->SetPlayState(playItf, SL_PLAYSTATE_PLAYING ); in TestEQPathFromFD()
196 ExitOnError(result); in TestEQPathFromFD()
200 result = (*eqItf)->GetNumberOfBands(eqItf, &nbBands); in TestEQPathFromFD()
201 ExitOnError(result); in TestEQPathFromFD()
202 result = (*eqItf)->GetNumberOfPresets(eqItf, &nbPresets); in TestEQPathFromFD()
203 ExitOnError(result); in TestEQPathFromFD()
206 result = (*eqItf)->UsePreset(eqItf, preset); in TestEQPathFromFD()
209 result = (*eqItf)->GetCurrentPreset(eqItf, &preset); in TestEQPathFromFD()
210 ExitOnError(result); in TestEQPathFromFD()
219 result = (*eqItf)->GetBandLevelRange(eqItf, &minLevel, &maxLevel); in TestEQPathFromFD()
220 ExitOnError(result); in TestEQPathFromFD()
225 result = (*eqItf)->SetBandLevel(eqItf, b, minLevel); in TestEQPathFromFD()
226 ExitOnError(result); in TestEQPathFromFD()
229 result = (*eqItf)->SetBandLevel(eqItf, b, maxLevel); in TestEQPathFromFD()
230 ExitOnError(result); in TestEQPathFromFD()
235 result = (*eqItf)->GetBandLevel(eqItf, b, &level); in TestEQPathFromFD()
236 ExitOnError(result); in TestEQPathFromFD()
244 result = (*eqItf)->IsEnabled(eqItf, &enabled); in TestEQPathFromFD()
245 ExitOnError(result); in TestEQPathFromFD()
248 result = (*eqItf)->SetEnabled(eqItf, enabled); in TestEQPathFromFD()
249 ExitOnError(result); in TestEQPathFromFD()
262 result = (*playItf)->SetPlayState(playItf, SL_PLAYSTATE_STOPPED); in TestEQPathFromFD()
263 ExitOnError(result); in TestEQPathFromFD()
280 SLresult result; in main() local
315 result = slCreateEngine( &sl, 1, EngineOption, 0, NULL, NULL); in main()
316 ExitOnError(result); in main()
319 result = (*sl)->Realize(sl, SL_BOOLEAN_FALSE); in main()
320 ExitOnError(result); in main()