Searched refs:wrappingBuffer (Results 1 – 8 of 8) sorted by relevance
/frameworks/av/media/libaaudio/src/fifo/ |
D | FifoBuffer.cpp | 74 void FifoBuffer::fillWrappingBuffer(WrappingBuffer *wrappingBuffer, in fillWrappingBuffer() argument 77 wrappingBuffer->data[1] = nullptr; in fillWrappingBuffer() 78 wrappingBuffer->numFrames[1] = 0; in fillWrappingBuffer() 84 wrappingBuffer->data[0] = source; in fillWrappingBuffer() 86 wrappingBuffer->numFrames[0] = firstFrames; in fillWrappingBuffer() 87 wrappingBuffer->data[1] = &mStorage[0]; in fillWrappingBuffer() 88 wrappingBuffer->numFrames[1] = framesAvailable - firstFrames; in fillWrappingBuffer() 90 wrappingBuffer->data[0] = source; in fillWrappingBuffer() 91 wrappingBuffer->numFrames[0] = framesAvailable; in fillWrappingBuffer() 94 wrappingBuffer->data[0] = nullptr; in fillWrappingBuffer() [all …]
|
D | FifoBuffer.h | 70 fifo_frames_t getFullDataAvailable(WrappingBuffer *wrappingBuffer); 79 fifo_frames_t getEmptyRoomAvailable(WrappingBuffer *wrappingBuffer); 126 void fillWrappingBuffer(WrappingBuffer *wrappingBuffer,
|
/frameworks/av/media/libaaudio/tests/ |
D | test_atomic_fifo.cpp | 155 WrappingBuffer wrappingBuffer; in verifyWrappingBuffer() local 162 fifo_frames_t wrapAvailable = mFifoBuffer.getEmptyRoomAvailable(&wrappingBuffer); in verifyWrappingBuffer() 164 fifo_frames_t bothAvailable = wrappingBuffer.numFrames[0] + wrappingBuffer.numFrames[1]; in verifyWrappingBuffer() 169 wrapAvailable = mFifoBuffer.getFullDataAvailable(&wrappingBuffer); in verifyWrappingBuffer() 171 bothAvailable = wrappingBuffer.numFrames[0] + wrappingBuffer.numFrames[1]; in verifyWrappingBuffer() 176 EXPECT_GE(wrappingBuffer.numFrames[0], 0); in verifyWrappingBuffer() 177 EXPECT_LE(wrappingBuffer.numFrames[0], capacity); in verifyWrappingBuffer() 178 EXPECT_GE(wrappingBuffer.numFrames[1], 0); in verifyWrappingBuffer() 179 EXPECT_LE(wrappingBuffer.numFrames[1], capacity); in verifyWrappingBuffer() 183 if (wrappingBuffer.numFrames[0]) { in verifyWrappingBuffer() [all …]
|
/frameworks/av/media/libaaudio/src/client/ |
D | AudioStreamInternalCapture.cpp | 160 WrappingBuffer wrappingBuffer; in readNowWithConversion() local 164 mAudioEndpoint.getFullFramesAvailable(&wrappingBuffer); in readNowWithConversion() 169 const int32_t framesAvailable = wrappingBuffer.numFrames[partIndex]; in readNowWithConversion() 183 memcpy(destination, wrappingBuffer.data[partIndex], numBytes); in readNowWithConversion() 188 (const int16_t *) wrappingBuffer.data[partIndex], in readNowWithConversion() 194 (const float *) wrappingBuffer.data[partIndex], in readNowWithConversion()
|
D | AudioEndpoint.cpp | 193 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()
|
D | AudioStreamInternalPlay.cpp | 211 WrappingBuffer wrappingBuffer; in writeNowWithConversion() local 215 mAudioEndpoint.getEmptyFramesAvailable(&wrappingBuffer); in writeNowWithConversion() 221 int32_t framesAvailable = wrappingBuffer.numFrames[partIndex]; in writeNowWithConversion() 230 wrappingBuffer.data[partIndex], in writeNowWithConversion()
|
D | AudioEndpoint.h | 52 int32_t getEmptyFramesAvailable(android::WrappingBuffer *wrappingBuffer); 56 int32_t getFullFramesAvailable(android::WrappingBuffer *wrappingBuffer);
|
/frameworks/av/services/oboeservice/ |
D | AAudioMixer.cpp | 53 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()
|