Lines Matching refs:audioPlayer

188 void audioPlayerTransportUpdate(CAudioPlayer *audioPlayer)  in audioPlayerTransportUpdate()  argument
191 if (NULL != audioPlayer->mSndFile.mSNDFILE) { in audioPlayerTransportUpdate()
193 object_lock_exclusive(&audioPlayer->mObject); in audioPlayerTransportUpdate()
194 SLboolean empty = 0 == audioPlayer->mBufferQueue.mState.count; in audioPlayerTransportUpdate()
196 audioPlayer->mPrefetchStatus.mLevel = 1000; in audioPlayerTransportUpdate()
197 SLmillisecond pos = audioPlayer->mSeek.mPos; in audioPlayerTransportUpdate()
199 audioPlayer->mSeek.mPos = SL_TIME_UNKNOWN; in audioPlayerTransportUpdate()
201 if (pos > audioPlayer->mPlay.mDuration) { in audioPlayerTransportUpdate()
202 pos = audioPlayer->mPlay.mDuration; in audioPlayerTransportUpdate()
204 audioPlayer->mPlay.mLastSeekPosition = pos; in audioPlayerTransportUpdate()
205 audioPlayer->mPlay.mFramesSinceLastSeek = 0; in audioPlayerTransportUpdate()
207 audioPlayer->mPlay.mFramesSincePositionUpdate = 0; in audioPlayerTransportUpdate()
209 object_unlock_exclusive(&audioPlayer->mObject); in audioPlayerTransportUpdate()
214 IBufferQueue_Clear(&audioPlayer->mBufferQueue.mItf); in audioPlayerTransportUpdate()
217 pthread_mutex_lock(&audioPlayer->mSndFile.mMutex); in audioPlayerTransportUpdate()
219 (void) sf_seek(audioPlayer->mSndFile.mSNDFILE, (sf_count_t) (((long long) pos * in audioPlayerTransportUpdate()
220 audioPlayer->mSndFile.mSfInfo.samplerate) / 1000LL), SEEK_SET); in audioPlayerTransportUpdate()
221 audioPlayer->mSndFile.mEOF = SL_BOOLEAN_FALSE; in audioPlayerTransportUpdate()
222 audioPlayer->mSndFile.mWhich = 0; in audioPlayerTransportUpdate()
223 pthread_mutex_unlock(&audioPlayer->mSndFile.mMutex); in audioPlayerTransportUpdate()
229 SndFile_Callback(&audioPlayer->mBufferQueue.mItf, audioPlayer); in audioPlayerTransportUpdate()