Home
last modified time | relevance | path

Searched refs:audioPlayer (Results 1 – 9 of 9) sorted by relevance

/frameworks/wilhelm/src/itf/
DIOutputMixExt.c50 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()
[all …]
DIPlay.c35 CAudioPlayer *audioPlayer = (SL_OBJECTID_AUDIOPLAYER == InterfaceToObjectID(thiz)) ? in IPlay_SetPlayState() local
59 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() local
225 SLmillisecond pos = audioPlayer->mSeek.mPos; in IPlay_GetPosition()
395 CAudioPlayer *audioPlayer = (CAudioPlayer *) thiz->mThis; in IPlay_SetPositionUpdatePeriod() local
397 (long long) audioPlayer->mSampleRateMilliHz) / 1000000LL; in IPlay_SetPositionUpdatePeriod()
DIEffectSend.c42 CAudioPlayer *audioPlayer = (SL_OBJECTID_AUDIOPLAYER == InterfaceToObjectID(thiz)) ? in getEnableLevel() local
44 if (NULL == audioPlayer) { in getEnableLevel()
48 COutputMix *outputMix = CAudioPlayer_GetOutputMix(audioPlayer); in getEnableLevel()
DIBufferQueue.c89 CAudioPlayer *audioPlayer = (CAudioPlayer *) thiz->mThis; in IBufferQueue_Clear() local
91 result = android_audioPlayer_bufferQueue_onClear(audioPlayer); in IBufferQueue_Clear()
/frameworks/wilhelm/src/desktop/
DSndFile.c188 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()
[all …]
/frameworks/wilhelm/src/objects/
DCAudioPlayer.c84 CAudioPlayer *audioPlayer = track->mAudioPlayer; in CAudioPlayer_PreDestroy() local
85 if (NULL == audioPlayer) { in CAudioPlayer_PreDestroy()
88 assert(audioPlayer == thiz); in CAudioPlayer_PreDestroy()
104 COutputMix *CAudioPlayer_GetOutputMix(CAudioPlayer *audioPlayer) in CAudioPlayer_GetOutputMix() argument
106 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()
/frameworks/wilhelm/tests/mimeUri/
DslesTestManyPlayers.cpp39 SLObjectItf audioPlayer[MAX_NUMBER_PLAYERS]; variable
211 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()
/frameworks/wilhelm/src/
Dsync.c80 CAudioPlayer *audioPlayer = (CAudioPlayer *) instance; in sync_start() local
81 audioPlayerTransportUpdate(audioPlayer); in sync_start()
Dsles_allinclusive.h400 extern void audioPlayerTransportUpdate(CAudioPlayer *audioPlayer);
413 extern COutputMix *CAudioPlayer_GetOutputMix(CAudioPlayer *audioPlayer);