Searched refs:wrappingBuffer (Results 1 – 9 of 9) sorted by relevance
71 void FifoBuffer::fillWrappingBuffer(WrappingBuffer *wrappingBuffer, in fillWrappingBuffer() argument74 wrappingBuffer->data[1] = nullptr; in fillWrappingBuffer()75 wrappingBuffer->numFrames[1] = 0; in fillWrappingBuffer()82 wrappingBuffer->data[0] = source; in fillWrappingBuffer()84 wrappingBuffer->numFrames[0] = firstFrames; in fillWrappingBuffer()85 wrappingBuffer->data[1] = &storage[0]; in fillWrappingBuffer()86 wrappingBuffer->numFrames[1] = framesAvailable - firstFrames; in fillWrappingBuffer()88 wrappingBuffer->data[0] = source; in fillWrappingBuffer()89 wrappingBuffer->numFrames[0] = framesAvailable; in fillWrappingBuffer()92 wrappingBuffer->data[0] = nullptr; in fillWrappingBuffer()[all …]
64 fifo_frames_t getFullDataAvailable(WrappingBuffer *wrappingBuffer);73 fifo_frames_t getEmptyRoomAvailable(WrappingBuffer *wrappingBuffer);129 void fillWrappingBuffer(WrappingBuffer *wrappingBuffer,
156 WrappingBuffer wrappingBuffer; in verifyWrappingBuffer() local163 fifo_frames_t wrapAvailable = mFifoBuffer.getEmptyRoomAvailable(&wrappingBuffer); in verifyWrappingBuffer()165 fifo_frames_t bothAvailable = wrappingBuffer.numFrames[0] + wrappingBuffer.numFrames[1]; in verifyWrappingBuffer()170 wrapAvailable = mFifoBuffer.getFullDataAvailable(&wrappingBuffer); in verifyWrappingBuffer()172 bothAvailable = wrappingBuffer.numFrames[0] + wrappingBuffer.numFrames[1]; in verifyWrappingBuffer()177 EXPECT_GE(wrappingBuffer.numFrames[0], 0); in verifyWrappingBuffer()178 EXPECT_LE(wrappingBuffer.numFrames[0], capacity); in verifyWrappingBuffer()179 EXPECT_GE(wrappingBuffer.numFrames[1], 0); in verifyWrappingBuffer()180 EXPECT_LE(wrappingBuffer.numFrames[1], capacity); in verifyWrappingBuffer()184 if (wrappingBuffer.numFrames[0]) { in verifyWrappingBuffer()[all …]
50 WrappingBuffer wrappingBuffer; in mix() local58 fifo_frames_t fullFrames = fifo->getFullDataAvailable(&wrappingBuffer); in mix()86 fifo_frames_t framesAvailableFromPart = wrappingBuffer.numFrames[partIndex]; in mix()91 mixPart(destination, (float *)wrappingBuffer.data[partIndex], in mix()
694 WrappingBuffer wrappingBuffer; in reportData() local695 fifo_frames_t framesAvailable = fifo->getFullDataAvailable(&wrappingBuffer); in reportData()697 if (wrappingBuffer.numFrames[i] > 0) { in reportData()698 mMmapStream->reportData(wrappingBuffer.data[i], wrappingBuffer.numFrames[i]); in reportData()
191 WrappingBuffer wrappingBuffer; in readNowWithConversion() local207 mAudioEndpoint->getFullFramesAvailable(&wrappingBuffer); in readNowWithConversion()213 const int32_t totalFramesInWrappingBuffer = wrappingBuffer.numFrames[partIndex]; in readNowWithConversion()215 uint8_t *currentWrappingBuffer = (uint8_t *) wrappingBuffer.data[partIndex]; in readNowWithConversion()
194 int32_t AudioEndpoint::getEmptyFramesAvailable(WrappingBuffer *wrappingBuffer) { in getEmptyFramesAvailable() argument195 return mDataQueue == nullptr ? 0 : mDataQueue->getEmptyRoomAvailable(wrappingBuffer); in getEmptyFramesAvailable()202 int32_t AudioEndpoint::getFullFramesAvailable(WrappingBuffer *wrappingBuffer) { in getFullFramesAvailable() argument203 return mDataQueue == nullptr ? 0 : mDataQueue->getFullDataAvailable(wrappingBuffer); in getFullFramesAvailable()
56 int32_t getEmptyFramesAvailable(android::WrappingBuffer *wrappingBuffer);60 int32_t getFullFramesAvailable(android::WrappingBuffer *wrappingBuffer);
298 WrappingBuffer wrappingBuffer; in writeNowWithConversion() local302 mAudioEndpoint->getEmptyFramesAvailable(&wrappingBuffer); in writeNowWithConversion()308 int32_t framesAvailableInWrappingBuffer = wrappingBuffer.numFrames[partIndex]; in writeNowWithConversion()309 uint8_t *currentWrappingBuffer = (uint8_t *) wrappingBuffer.data[partIndex]; in writeNowWithConversion()