Lines Matching refs:thisAP
28 CAudioPlayer *thisAP = (CAudioPlayer *) pContext; in SndFile_Callback() local
29 object_lock_peek(&thisAP->mObject); in SndFile_Callback()
30 SLuint32 state = thisAP->mPlay.mState; in SndFile_Callback()
31 object_unlock_peek(&thisAP->mObject); in SndFile_Callback()
35 struct SndFile *thiz = &thisAP->mSndFile; in SndFile_Callback()
50 object_lock_exclusive(&thisAP->mObject); in SndFile_Callback()
51 slPlayCallback callback = thisAP->mPlay.mCallback; in SndFile_Callback()
52 void *context = thisAP->mPlay.mContext; in SndFile_Callback()
54 SLuint32 sampleRateMilliHz = thisAP->mSampleRateMilliHz; in SndFile_Callback()
57 thisAP->mPlay.mPosition = (SLuint32) (((long long) thisAP->mPlay.mFramesSinceLastSeek * in SndFile_Callback()
58 1000000LL) / sampleRateMilliHz) + thisAP->mPlay.mLastSeekPosition; in SndFile_Callback()
61 SLuint32 frameUpdatePeriod = thisAP->mPlay.mFrameUpdatePeriod; in SndFile_Callback()
63 (thisAP->mPlay.mFramesSincePositionUpdate >= frameUpdatePeriod) && in SndFile_Callback()
64 (SL_PLAYEVENT_HEADATNEWPOS & thisAP->mPlay.mEventFlags)) { in SndFile_Callback()
68 if ((thisAP->mPlay.mFramesSincePositionUpdate -= thisAP->mPlay.mFrameUpdatePeriod) >= in SndFile_Callback()
70 thisAP->mPlay.mFramesSincePositionUpdate %= frameUpdatePeriod; in SndFile_Callback()
76 object_unlock_exclusive(&thisAP->mObject); in SndFile_Callback()
84 thisAP->mPlay.mState = SL_PLAYSTATE_PAUSED; in SndFile_Callback()
88 object_unlock_exclusive_attributes(&thisAP->mObject, ATTR_TRANSPORT); in SndFile_Callback()
93 (*callback)(&thisAP->mPlay.mItf, context, SL_PLAYEVENT_HEADATNEWPOS); in SndFile_Callback()