Home
last modified time | relevance | path

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

/frameworks/av/media/libaaudio/src/fifo/
DFifoBuffer.cpp84 void FifoBuffer::fillWrappingBuffer(WrappingBuffer *wrappingBuffer, in fillWrappingBuffer() argument
87 wrappingBuffer->data[1] = nullptr; in fillWrappingBuffer()
88 wrappingBuffer->numFrames[1] = 0; in fillWrappingBuffer()
93 wrappingBuffer->data[0] = source; in fillWrappingBuffer()
95 wrappingBuffer->numFrames[0] = firstFrames; in fillWrappingBuffer()
96 wrappingBuffer->data[1] = &mStorage[0]; in fillWrappingBuffer()
97 wrappingBuffer->numFrames[1] = framesAvailable - firstFrames; in fillWrappingBuffer()
99 wrappingBuffer->data[0] = source; in fillWrappingBuffer()
100 wrappingBuffer->numFrames[0] = framesAvailable; in fillWrappingBuffer()
103 wrappingBuffer->data[0] = nullptr; in fillWrappingBuffer()
[all …]
DFifoBuffer.h69 fifo_frames_t getFullDataAvailable(WrappingBuffer *wrappingBuffer);
78 fifo_frames_t getEmptyRoomAvailable(WrappingBuffer *wrappingBuffer);
121 void fillWrappingBuffer(WrappingBuffer *wrappingBuffer,
/frameworks/av/media/libaaudio/src/client/
DAudioStreamInternalCapture.cpp159 WrappingBuffer wrappingBuffer; in readNowWithConversion() local
163 mAudioEndpoint.getFullFramesAvailable(&wrappingBuffer); in readNowWithConversion()
168 int32_t framesAvailable = wrappingBuffer.numFrames[partIndex]; in readNowWithConversion()
180 memcpy(destination, wrappingBuffer.data[partIndex], numBytes); in readNowWithConversion()
184 (const int16_t *) wrappingBuffer.data[partIndex], in readNowWithConversion()
191 (const float *) wrappingBuffer.data[partIndex], in readNowWithConversion()
DAudioEndpoint.cpp193 int32_t AudioEndpoint::getEmptyFramesAvailable(WrappingBuffer *wrappingBuffer) { in getEmptyFramesAvailable() argument
194 return mDataQueue->getEmptyRoomAvailable(wrappingBuffer); in getEmptyFramesAvailable()
202 int32_t AudioEndpoint::getFullFramesAvailable(WrappingBuffer *wrappingBuffer) in getFullFramesAvailable() argument
204 return mDataQueue->getFullDataAvailable(wrappingBuffer); in getFullFramesAvailable()
DAudioEndpoint.h52 int32_t getEmptyFramesAvailable(android::WrappingBuffer *wrappingBuffer);
56 int32_t getFullFramesAvailable(android::WrappingBuffer *wrappingBuffer);
DAudioStreamInternalPlay.cpp202 WrappingBuffer wrappingBuffer; in writeNowWithConversion() local
206 mAudioEndpoint.getEmptyFramesAvailable(&wrappingBuffer); in writeNowWithConversion()
212 int32_t framesAvailable = wrappingBuffer.numFrames[partIndex]; in writeNowWithConversion()
229 wrappingBuffer.data[partIndex], in writeNowWithConversion()
/frameworks/av/services/oboeservice/
DAAudioMixer.cpp53 WrappingBuffer wrappingBuffer; in mix() local
61 fifo_frames_t fullFrames = fifo->getFullDataAvailable(&wrappingBuffer); in mix()
89 fifo_frames_t framesAvailableFromPart = wrappingBuffer.numFrames[partIndex]; in mix()
94 mixPart(destination, (float *)wrappingBuffer.data[partIndex], in mix()
/frameworks/av/media/libaaudio/tests/
Dtest_atomic_fifo.cpp97 WrappingBuffer wrappingBuffer; in checkWrappingBuffer() local
100 fifo_frames_t wrapAvailable = mFifoBuffer.getEmptyRoomAvailable(&wrappingBuffer); in checkWrappingBuffer()
102 fifo_frames_t bothAvailable = wrappingBuffer.numFrames[0] + wrappingBuffer.numFrames[1]; in checkWrappingBuffer()
107 wrapAvailable = mFifoBuffer.getFullDataAvailable(&wrappingBuffer); in checkWrappingBuffer()
109 bothAvailable = wrappingBuffer.numFrames[0] + wrappingBuffer.numFrames[1]; in checkWrappingBuffer()