• Home
  • Raw
  • Download

Lines Matching refs:pBuffer

70 status_t CopyBufferProvider::getNextBuffer(AudioBufferProvider::Buffer *pBuffer)  in getNextBuffer()  argument
75 status_t res = mTrackBufferProvider->getNextBuffer(pBuffer); in getNextBuffer()
77 copyFrames(pBuffer->raw, pBuffer->raw, pBuffer->frameCount); in getNextBuffer()
82 mBuffer.frameCount = pBuffer->frameCount; in getNextBuffer()
91 pBuffer->raw = NULL; in getNextBuffer()
92 pBuffer->frameCount = 0; in getNextBuffer()
99 count = std::min(count, pBuffer->frameCount); in getNextBuffer()
100 pBuffer->raw = mLocalBufferData; in getNextBuffer()
101 pBuffer->frameCount = count; in getNextBuffer()
102 copyFrames(pBuffer->raw, (uint8_t*)mBuffer.raw + mConsumed * mInputFrameSize, in getNextBuffer()
103 pBuffer->frameCount); in getNextBuffer()
107 void CopyBufferProvider::releaseBuffer(AudioBufferProvider::Buffer *pBuffer) in releaseBuffer() argument
112 mTrackBufferProvider->releaseBuffer(pBuffer); in releaseBuffer()
116 mConsumed += pBuffer->frameCount; // TODO: update for efficiency to reuse existing content in releaseBuffer()
121 pBuffer->raw = NULL; in releaseBuffer()
122 pBuffer->frameCount = 0; in releaseBuffer()
461 AudioBufferProvider::Buffer *pBuffer) in getNextBuffer() argument
464 this, pBuffer, pBuffer->frameCount); in getNextBuffer()
470 if (pBuffer->frameCount <= mRemaining) { in getNextBuffer()
472 pBuffer->raw = mLocalBufferData; in getNextBuffer()
477 if (pBuffer->frameCount > mLocalBufferFrameCount) { in getNextBuffer()
479 if (posix_memalign(&newmem, 32, pBuffer->frameCount * mFrameSize) == OK) { in getNextBuffer()
485 mLocalBufferFrameCount = pBuffer->frameCount; in getNextBuffer()
490 const size_t outputDesired = pBuffer->frameCount - mRemaining; in getNextBuffer()
502 pBuffer->raw = NULL; in getNextBuffer()
503 pBuffer->frameCount = 0; in getNextBuffer()
506 pBuffer->raw = mLocalBufferData; in getNextBuffer()
507 pBuffer->frameCount = mRemaining; in getNextBuffer()
526 pBuffer->raw = mLocalBufferData; in getNextBuffer()
527 pBuffer->frameCount = mRemaining; in getNextBuffer()
532 void TimestretchBufferProvider::releaseBuffer(AudioBufferProvider::Buffer *pBuffer) in releaseBuffer() argument
535 this, pBuffer, pBuffer->frameCount); in releaseBuffer()
541 if (pBuffer->frameCount < mRemaining) { in releaseBuffer()
543 (uint8_t*)mLocalBufferData + pBuffer->frameCount * mFrameSize, in releaseBuffer()
544 (mRemaining - pBuffer->frameCount) * mFrameSize); in releaseBuffer()
545 mRemaining -= pBuffer->frameCount; in releaseBuffer()
546 } else if (pBuffer->frameCount == mRemaining) { in releaseBuffer()
550 pBuffer->frameCount, mRemaining); in releaseBuffer()
553 pBuffer->raw = NULL; in releaseBuffer()
554 pBuffer->frameCount = 0; in releaseBuffer()
686 status_t AdjustChannelsBufferProvider::getNextBuffer(AudioBufferProvider::Buffer* pBuffer) in getNextBuffer() argument
691 if (outFramesLeft < pBuffer->frameCount) { in getNextBuffer()
693 pBuffer->frameCount = outFramesLeft; in getNextBuffer()
696 return CopyBufferProvider::getNextBuffer(pBuffer); in getNextBuffer()