Lines Matching refs:p

95     Player *p = (Player *) context;  in prefetch_callback()  local
96 assert(p->mPlayerPrefetchStatus == caller); in prefetch_callback()
107 p->mPlayerErrorInCallback = SL_BOOLEAN_TRUE; in prefetch_callback()
178 Player *p; in main() local
186 p = &players[i]; in main()
192 result = (*engineEngine)->CreateAudioPlayer(engineEngine, &p->mPlayerObject, &audioSrc, in main()
195 result = (*p->mPlayerObject)->Realize(p->mPlayerObject, SL_BOOLEAN_FALSE); in main()
197 result = (*p->mPlayerObject)->GetInterface(p->mPlayerObject, SL_IID_PLAY, &p->mPlayerPlay); in main()
199 result = (*p->mPlayerObject)->GetInterface(p->mPlayerObject, SL_IID_VOLUME, in main()
200 &p->mPlayerVolume); in main()
202 result = (*p->mPlayerObject)->GetInterface(p->mPlayerObject, SL_IID_SEEK, &p->mPlayerSeek); in main()
204 result = (*p->mPlayerObject)->GetInterface(p->mPlayerObject, SL_IID_PREFETCHSTATUS, in main()
205 &p->mPlayerPrefetchStatus); in main()
207 result = (*p->mPlayerPrefetchStatus)->RegisterCallback(p->mPlayerPrefetchStatus, in main()
208 prefetch_callback, p); in main()
210 result = (*p->mPlayerPrefetchStatus)->SetCallbackEventsMask(p->mPlayerPrefetchStatus, in main()
221 p = &players[i]; in main()
222 if (p->mPlayerErrorReported) in main()
225 if (p->mPlayerErrorInCallback && !p->mPlayerErrorReported) { in main()
227 p->mPlayerErrorReported = SL_BOOLEAN_TRUE; in main()
229 result = (*p->mPlayerPlay)->GetDuration(p->mPlayerPlay, &p->mPlayerDuration); in main()
231 if (p->mPlayerDuration == SL_TIME_UNKNOWN) { in main()
234 printf("duration %d ms, ", (int) p->mPlayerDuration); in main()
237 result = (*p->mPlayerPlay)->GetPlayState(p->mPlayerPlay, &state); in main()
258 result = (*p->mPlayerVolume)->SetVolumeLevel(p->mPlayerVolume, volumeLevel); in main()
260 result = (*p->mPlayerVolume)->EnableStereoPosition(p->mPlayerVolume, SL_BOOLEAN_TRUE); in main()
264 result = (*p->mPlayerVolume)->SetStereoPosition(p->mPlayerVolume, stereoPosition); in main()
267 result = (*p->mPlayerSeek)->SetPosition(p->mPlayerSeek, 0, SL_SEEKMODE_FAST); in main()
270 result = (*p->mPlayerPlay)->SetPlayState(p->mPlayerPlay, SL_PLAYSTATE_PLAYING); in main()