Home
last modified time | relevance | path

Searched refs:mAudioEndpoint (Results 1 – 4 of 4) sorted by relevance

/frameworks/av/media/libaaudio/src/client/
DAudioStreamInternalCapture.cpp45 int64_t readCounter = mAudioEndpoint->getDataReadCounter(); in advanceClientToMatchServerPosition()
46 int64_t writeCounter = mAudioEndpoint->getDataWriteCounter(); in advanceClientToMatchServerPosition()
56 mAudioEndpoint->setDataReadCounter(writeCounter); in advanceClientToMatchServerPosition()
89 if (mAudioEndpoint->isFreeRunning()) { in processDataNow()
98 mAudioEndpoint->setDataWriteCounter(estimatedRemoteCounter); in processDataNow()
111 if (mAudioEndpoint->isFreeRunning() in processDataNow()
112 && mAudioEndpoint->getFullFramesAvailable() > mAudioEndpoint->getBufferCapacityInFrames()) { in processDataNow()
146 int64_t nextPosition = mAudioEndpoint->getDataReadCounter() + mFramesPerBurst; in processDataNow()
169 mAudioEndpoint->getFullFramesAvailable(&wrappingBuffer); in readNowWithConversion()
211 mAudioEndpoint->advanceReadIndex(framesProcessed); in readNowWithConversion()
[all …]
DAudioStreamInternalPlay.cpp90 int64_t readCounter = mAudioEndpoint->getDataReadCounter(); in advanceClientToMatchServerPosition()
91 int64_t writeCounter = mAudioEndpoint->getDataWriteCounter(); in advanceClientToMatchServerPosition()
101 mAudioEndpoint->setDataWriteCounter(readCounter); in advanceClientToMatchServerPosition()
138 if (mAudioEndpoint->isFreeRunning()) { in processDataNow()
142 mAudioEndpoint->setDataReadCounter(estimatedReadCounter); in processDataNow()
154 if (mAudioEndpoint->isFreeRunning() && mAudioEndpoint->getFullFramesAvailable() < 0) { in processDataNow()
173 && (mAudioEndpoint->getFullFramesAvailable() >= getBufferSize())) { in processDataNow()
191 int64_t nextReadPosition = mAudioEndpoint->getDataWriteCounter() - getBufferSize(); in processDataNow()
213 mAudioEndpoint->getEmptyFramesAvailable(&wrappingBuffer); in writeNowWithConversion()
239 mAudioEndpoint->advanceWriteIndex(framesWritten); in writeNowWithConversion()
[all …]
DAudioStreamInternal.cpp187 mAudioEndpoint = std::make_unique<AudioEndpoint>(); in open()
188 result = mAudioEndpoint->configure(&mEndpointDescriptor, getDirection()); in open()
255 if (mAudioEndpoint->isFreeRunning()) { // MMAP? in open()
303 mAudioEndpoint.reset(); in release_l()
578 mAudioEndpoint->eraseDataMemory(); in onEventFromServer()
604 if (!mAudioEndpoint) { in drainTimestampsFromService()
607 if (mAudioEndpoint->readUpCommand(&message) != 1) { in drainTimestampsFromService()
635 if (!mAudioEndpoint) { in processCommands()
638 if (mAudioEndpoint->readUpCommand(&message) != 1) { in processCommands()
671 int32_t fullFrames = mAudioEndpoint->getFullFramesAvailable(); in processData()
[all …]
DAudioStreamInternal.h158 std::unique_ptr<AudioEndpoint> mAudioEndpoint; // source for reads or sink for writes variable