Searched refs:audioPlayer (Results 1 – 9 of 9) sorted by relevance
50 CAudioPlayer *audioPlayer = track->mAudioPlayer; in track_check() local51 if (NULL != audioPlayer) { in track_check()57 object_lock_exclusive(&audioPlayer->mObject); in track_check()58 assert(audioPlayer->mTrack == track); in track_check()63 audioPlayer->mPlay.mFramesSinceLastSeek += framesMixed; in track_check()64 audioPlayer->mPlay.mFramesSincePositionUpdate += framesMixed; in track_check()70 if (audioPlayer->mBufferQueue.mClearRequested) { in track_check()73 audioPlayer->mBufferQueue.mFront = &audioPlayer->mBufferQueue.mArray[0]; in track_check()74 audioPlayer->mBufferQueue.mRear = &audioPlayer->mBufferQueue.mArray[0]; in track_check()75 audioPlayer->mBufferQueue.mState.count = 0; in track_check()[all …]
35 CAudioPlayer *audioPlayer = (SL_OBJECTID_AUDIOPLAYER == InterfaceToObjectID(thiz)) ? in IPlay_SetPlayState() local59 if ((NULL != audioPlayer) && (audioPlayer->mBufferQueue.mFront != in IPlay_SetPlayState()60 audioPlayer->mBufferQueue.mRear)) { in IPlay_SetPlayState()224 CAudioPlayer *audioPlayer = (CAudioPlayer *) thiz->mThis; in IPlay_GetPosition() local225 SLmillisecond pos = audioPlayer->mSeek.mPos; in IPlay_GetPosition()395 CAudioPlayer *audioPlayer = (CAudioPlayer *) thiz->mThis; in IPlay_SetPositionUpdatePeriod() local397 (long long) audioPlayer->mSampleRateMilliHz) / 1000000LL; in IPlay_SetPositionUpdatePeriod()
42 CAudioPlayer *audioPlayer = (SL_OBJECTID_AUDIOPLAYER == InterfaceToObjectID(thiz)) ? in getEnableLevel() local44 if (NULL == audioPlayer) { in getEnableLevel()48 COutputMix *outputMix = CAudioPlayer_GetOutputMix(audioPlayer); in getEnableLevel()
89 CAudioPlayer *audioPlayer = (CAudioPlayer *) thiz->mThis; in IBufferQueue_Clear() local91 result = android_audioPlayer_bufferQueue_onClear(audioPlayer); in IBufferQueue_Clear()
188 void audioPlayerTransportUpdate(CAudioPlayer *audioPlayer) in audioPlayerTransportUpdate() argument191 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()[all …]
84 CAudioPlayer *audioPlayer = track->mAudioPlayer; in CAudioPlayer_PreDestroy() local85 if (NULL == audioPlayer) { in CAudioPlayer_PreDestroy()88 assert(audioPlayer == thiz); in CAudioPlayer_PreDestroy()104 COutputMix *CAudioPlayer_GetOutputMix(CAudioPlayer *audioPlayer) in CAudioPlayer_GetOutputMix() argument106 assert(NULL != audioPlayer); in CAudioPlayer_GetOutputMix()107 assert(SL_DATALOCATOR_OUTPUTMIX == audioPlayer->mDataSink.mLocator.mLocatorType); in CAudioPlayer_GetOutputMix()108 SLObjectItf outputMix = audioPlayer->mDataSink.mLocator.mOutputMix.outputMix; in CAudioPlayer_GetOutputMix()
39 SLObjectItf audioPlayer[MAX_NUMBER_PLAYERS]; variable211 res = (*engineItf)->CreateAudioPlayer(engineItf, &audioPlayer[playerId], in CreatePlayer()222 res = (*audioPlayer[playerId])->Realize(audioPlayer[playerId], SL_BOOLEAN_FALSE); in CreatePlayer()232 res = (*audioPlayer[playerId])->GetInterface(audioPlayer[playerId], SL_IID_PLAY, in CreatePlayer()236 res = (*audioPlayer[playerId])->GetInterface(audioPlayer[playerId], SL_IID_VOLUME, in CreatePlayer()240 res = (*audioPlayer[playerId])->GetInterface(audioPlayer[playerId], SL_IID_PREFETCHSTATUS, in CreatePlayer()306 (*audioPlayer[playerId])->Destroy(audioPlayer[playerId]); in DestroyPlayer()
80 CAudioPlayer *audioPlayer = (CAudioPlayer *) instance; in sync_start() local81 audioPlayerTransportUpdate(audioPlayer); in sync_start()
400 extern void audioPlayerTransportUpdate(CAudioPlayer *audioPlayer);421 extern COutputMix *CAudioPlayer_GetOutputMix(CAudioPlayer *audioPlayer);