Lines Matching refs:result
63 static const char *result_to_string(SLresult result) in result_to_string() argument
66 if ( /* result >= 0 && */ result < sizeof(result_strings) / sizeof(result_strings[0])) in result_to_string()
67 return result_strings[result]; in result_to_string()
68 sprintf(buffer, "%d", (int) result); in result_to_string()
74 void check2(SLresult result, int line) in check2() argument
76 if (SL_RESULT_SUCCESS != result) { in check2()
77 fprintf(stderr, "error %s at line %d\n", result_to_string(result), line); in check2()
84 #define check(result) check2(result, __LINE__) argument
93 SLresult result; in prefetch_callback() local
98 result = (*caller)->GetFillLevel(caller, &level); in prefetch_callback()
99 check(result); in prefetch_callback()
101 result = (*caller)->GetPrefetchStatus(caller, &status); in prefetch_callback()
102 check(result); in prefetch_callback()
144 SLresult result; in main() local
150 result = slCreateEngine(&engineObject, 0, NULL, 1, engine_ids, engine_req); in main()
151 check(result); in main()
152 result = (*engineObject)->Realize(engineObject, SL_BOOLEAN_FALSE); in main()
153 check(result); in main()
155 result = (*engineObject)->GetInterface(engineObject, SL_IID_ENGINE, &engineEngine); in main()
156 check(result); in main()
162 result = (*engineEngine)->CreateOutputMix(engineEngine, &mixObject, 0, mix_ids, mix_req); in main()
163 check(result); in main()
164 result = (*mixObject)->Realize(mixObject, SL_BOOLEAN_FALSE); in main()
165 check(result); in main()
168 result = (*mixObject)->GetInterface(mixObject, SL_IID_VOLUME, &mixVolume); in main()
169 check(result); in main()
171 result = (*mixVolume)->GetVolumeLevel(mixVolume, &mixVolumeLevelDefault); in main()
172 check(result); in main()
192 result = (*engineEngine)->CreateAudioPlayer(engineEngine, &p->mPlayerObject, &audioSrc, in main()
194 check(result); in main()
195 result = (*p->mPlayerObject)->Realize(p->mPlayerObject, SL_BOOLEAN_FALSE); in main()
196 check(result); in main()
197 result = (*p->mPlayerObject)->GetInterface(p->mPlayerObject, SL_IID_PLAY, &p->mPlayerPlay); in main()
198 check(result); in main()
199 result = (*p->mPlayerObject)->GetInterface(p->mPlayerObject, SL_IID_VOLUME, in main()
201 check(result); in main()
202 result = (*p->mPlayerObject)->GetInterface(p->mPlayerObject, SL_IID_SEEK, &p->mPlayerSeek); in main()
203 check(result); in main()
204 result = (*p->mPlayerObject)->GetInterface(p->mPlayerObject, SL_IID_PREFETCHSTATUS, in main()
206 check(result); in main()
207 result = (*p->mPlayerPrefetchStatus)->RegisterCallback(p->mPlayerPrefetchStatus, in main()
209 check(result); in main()
210 result = (*p->mPlayerPrefetchStatus)->SetCallbackEventsMask(p->mPlayerPrefetchStatus, in main()
212 check(result); in main()
229 result = (*p->mPlayerPlay)->GetDuration(p->mPlayerPlay, &p->mPlayerDuration); in main()
230 check(result); in main()
237 result = (*p->mPlayerPlay)->GetPlayState(p->mPlayerPlay, &state); in main()
238 check(result); in main()
258 result = (*p->mPlayerVolume)->SetVolumeLevel(p->mPlayerVolume, volumeLevel); in main()
259 check(result); in main()
260 result = (*p->mPlayerVolume)->EnableStereoPosition(p->mPlayerVolume, SL_BOOLEAN_TRUE); in main()
261 check(result); in main()
264 result = (*p->mPlayerVolume)->SetStereoPosition(p->mPlayerVolume, stereoPosition); in main()
265 check(result); in main()
267 result = (*p->mPlayerSeek)->SetPosition(p->mPlayerSeek, 0, SL_SEEKMODE_FAST); in main()
268 check(result); in main()
270 result = (*p->mPlayerPlay)->SetPlayState(p->mPlayerPlay, SL_PLAYSTATE_PLAYING); in main()
271 check(result); in main()