Lines Matching refs:audioPlayer
50 CAudioPlayer *audioPlayer = track->mAudioPlayer; in track_check() local
51 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()
76 audioPlayer->mBufferQueue.mState.playIndex = 0; in track_check()
77 audioPlayer->mBufferQueue.mClearRequested = SL_BOOLEAN_FALSE; in track_check()
83 if (audioPlayer->mDestroyRequested) { in track_check()
86 COutputMix *outputMix = CAudioPlayer_GetOutputMix(audioPlayer); in track_check()
93 audioPlayer->mTrack = NULL; in track_check()
94 audioPlayer->mDestroyRequested = SL_BOOLEAN_FALSE; in track_check()
99 switch (audioPlayer->mPlay.mState) { in track_check()
108 oldFront = audioPlayer->mBufferQueue.mFront; in track_check()
109 if (oldFront != audioPlayer->mBufferQueue.mRear) { in track_check()
110 assert(0 < audioPlayer->mBufferQueue.mState.count); in track_check()
114 audioPlayer->mPlay.mState = SL_PLAYSTATE_PLAYING; in track_check()
123 track->mGains[0] = audioPlayer->mGains[0]; in track_check()
124 track->mGains[1] = audioPlayer->mGains[1]; in track_check()
128 audioPlayer->mPlay.mPosition = (SLmillisecond) 0; in track_check()
129 audioPlayer->mPlay.mFramesSinceLastSeek = 0; in track_check()
130 audioPlayer->mPlay.mFramesSincePositionUpdate = 0; in track_check()
131 audioPlayer->mPlay.mLastSeekPosition = 0; in track_check()
132 audioPlayer->mPlay.mState = SL_PLAYSTATE_STOPPED; in track_check()
134 audioPlayer->mSeek.mPos = SL_TIME_UNKNOWN; in track_check()
135 oldFront = audioPlayer->mBufferQueue.mFront; in track_check()
136 if (oldFront != audioPlayer->mBufferQueue.mRear) { in track_check()
137 assert(0 < audioPlayer->mBufferQueue.mState.count); in track_check()
155 object_cond_broadcast(&audioPlayer->mObject); in track_check()
158 object_unlock_exclusive(&audioPlayer->mObject); in track_check()
428 void audioPlayerGainUpdate(CAudioPlayer *audioPlayer) in audioPlayerGainUpdate() argument
430 SLboolean mute = audioPlayer->mVolume.mMute; in audioPlayerGainUpdate()
431 SLuint8 muteMask = audioPlayer->mMuteMask; in audioPlayerGainUpdate()
432 SLuint8 soloMask = audioPlayer->mSoloMask; in audioPlayerGainUpdate()
433 SLmillibel level = audioPlayer->mVolume.mLevel; in audioPlayerGainUpdate()
434 SLboolean enableStereoPosition = audioPlayer->mVolume.mEnableStereoPosition; in audioPlayerGainUpdate()
435 SLpermille stereoPosition = audioPlayer->mVolume.mStereoPosition; in audioPlayerGainUpdate()
441 audioPlayer->mGains[0] = 0.0f; in audioPlayerGainUpdate()
442 audioPlayer->mGains[1] = 0.0f; in audioPlayerGainUpdate()
470 audioPlayer->mGains[channel] = gain; in audioPlayerGainUpdate()