Home
last modified time | relevance | path

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

/frameworks/av/media/libaaudio/src/fifo/
DFifoBuffer.cpp82 void FifoBuffer::fillWrappingBuffer(WrappingBuffer *wrappingBuffer, in fillWrappingBuffer() argument
85 wrappingBuffer->data[1] = nullptr; in fillWrappingBuffer()
86 wrappingBuffer->numFrames[1] = 0; in fillWrappingBuffer()
92 wrappingBuffer->data[0] = source; in fillWrappingBuffer()
93 wrappingBuffer->numFrames[0] = mFrameCapacity - startIndex; in fillWrappingBuffer()
94 wrappingBuffer->data[1] = &mStorage[0]; in fillWrappingBuffer()
95 wrappingBuffer->numFrames[1] = mFrameCapacity - startIndex; in fillWrappingBuffer()
98 wrappingBuffer->data[0] = source; in fillWrappingBuffer()
99 wrappingBuffer->numFrames[0] = framesAvailable; in fillWrappingBuffer()
102 wrappingBuffer->data[0] = nullptr; in fillWrappingBuffer()
[all …]
DFifoBuffer.h68 void getFullDataAvailable(WrappingBuffer *wrappingBuffer);
76 void getEmptyRoomAvailable(WrappingBuffer *wrappingBuffer);
114 void fillWrappingBuffer(WrappingBuffer *wrappingBuffer,
/frameworks/av/media/libaaudio/src/client/
DAudioStreamInternalPlay.cpp116 WrappingBuffer wrappingBuffer; in writeNowWithConversion() local
120 mAudioEndpoint.getEmptyFramesAvailable(&wrappingBuffer); in writeNowWithConversion()
126 int32_t framesAvailable = wrappingBuffer.numFrames[partIndex]; in writeNowWithConversion()
145 (float *) wrappingBuffer.data[partIndex], in writeNowWithConversion()
154 (int16_t *) wrappingBuffer.data[partIndex], in writeNowWithConversion()
162 (int16_t *) wrappingBuffer.data[partIndex], in writeNowWithConversion()
172 (float *) wrappingBuffer.data[partIndex], in writeNowWithConversion()
180 (float *) wrappingBuffer.data[partIndex], in writeNowWithConversion()
187 (int16_t *) wrappingBuffer.data[partIndex], in writeNowWithConversion()
DAudioStreamInternalCapture.cpp112 WrappingBuffer wrappingBuffer; in readNowWithConversion() local
116 mAudioEndpoint.getFullFramesAvailable(&wrappingBuffer); in readNowWithConversion()
121 int32_t framesAvailable = wrappingBuffer.numFrames[partIndex]; in readNowWithConversion()
133 memcpy(destination, wrappingBuffer.data[partIndex], numBytes); in readNowWithConversion()
137 (const int16_t *) wrappingBuffer.data[partIndex], in readNowWithConversion()
144 (const float *) wrappingBuffer.data[partIndex], in readNowWithConversion()
DAudioEndpoint.cpp181 void AudioEndpoint::getEmptyFramesAvailable(WrappingBuffer *wrappingBuffer) { in getEmptyFramesAvailable() argument
182 mDataQueue->getEmptyRoomAvailable(wrappingBuffer); in getEmptyFramesAvailable()
190 void AudioEndpoint::getFullFramesAvailable(WrappingBuffer *wrappingBuffer) in getFullFramesAvailable() argument
192 return mDataQueue->getFullDataAvailable(wrappingBuffer); in getFullFramesAvailable()
DAudioEndpoint.h57 void getEmptyFramesAvailable(android::WrappingBuffer *wrappingBuffer);
61 void getFullFramesAvailable(android::WrappingBuffer *wrappingBuffer);
/frameworks/av/services/oboeservice/
DAAudioMixer.cpp45 WrappingBuffer wrappingBuffer; in mix() local
50 fifo->getFullDataAvailable(&wrappingBuffer); in mix()
56 fifo_frames_t framesAvailable = wrappingBuffer.numFrames[partIndex]; in mix()
61 mixPart(destination, (float *)wrappingBuffer.data[partIndex], framesToMix, volume); in mix()