Home
last modified time | relevance | path

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

/frameworks/av/media/libaaudio/src/fifo/
DFifoBuffer.cpp71 void FifoBuffer::fillWrappingBuffer(WrappingBuffer *wrappingBuffer, in fillWrappingBuffer() argument
74 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 …]
DFifoBuffer.h64 fifo_frames_t getFullDataAvailable(WrappingBuffer *wrappingBuffer);
73 fifo_frames_t getEmptyRoomAvailable(WrappingBuffer *wrappingBuffer);
129 void fillWrappingBuffer(WrappingBuffer *wrappingBuffer,
/frameworks/av/media/libaaudio/tests/
Dtest_atomic_fifo.cpp156 WrappingBuffer wrappingBuffer; in verifyWrappingBuffer() local
163 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 …]
/frameworks/av/services/oboeservice/
DAAudioMixer.cpp50 WrappingBuffer wrappingBuffer; in mix() local
58 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()
DAAudioServiceEndpointMMAP.cpp694 WrappingBuffer wrappingBuffer; in reportData() local
695 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()
/frameworks/av/media/libaaudio/src/client/
DAudioStreamInternalCapture.cpp191 WrappingBuffer wrappingBuffer; in readNowWithConversion() local
207 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()
DAudioEndpoint.cpp194 int32_t AudioEndpoint::getEmptyFramesAvailable(WrappingBuffer *wrappingBuffer) { in getEmptyFramesAvailable() argument
195 return mDataQueue == nullptr ? 0 : mDataQueue->getEmptyRoomAvailable(wrappingBuffer); in getEmptyFramesAvailable()
202 int32_t AudioEndpoint::getFullFramesAvailable(WrappingBuffer *wrappingBuffer) { in getFullFramesAvailable() argument
203 return mDataQueue == nullptr ? 0 : mDataQueue->getFullDataAvailable(wrappingBuffer); in getFullFramesAvailable()
DAudioEndpoint.h56 int32_t getEmptyFramesAvailable(android::WrappingBuffer *wrappingBuffer);
60 int32_t getFullFramesAvailable(android::WrappingBuffer *wrappingBuffer);
DAudioStreamInternalPlay.cpp298 WrappingBuffer wrappingBuffer; in writeNowWithConversion() local
302 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()