Searched refs:wrappingBuffer (Results 1 – 8 of 8) sorted by relevance
84 void FifoBuffer::fillWrappingBuffer(WrappingBuffer *wrappingBuffer, in fillWrappingBuffer() argument87 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 …]
69 fifo_frames_t getFullDataAvailable(WrappingBuffer *wrappingBuffer);78 fifo_frames_t getEmptyRoomAvailable(WrappingBuffer *wrappingBuffer);121 void fillWrappingBuffer(WrappingBuffer *wrappingBuffer,
159 WrappingBuffer wrappingBuffer; in readNowWithConversion() local163 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()
193 int32_t AudioEndpoint::getEmptyFramesAvailable(WrappingBuffer *wrappingBuffer) { in getEmptyFramesAvailable() argument194 return mDataQueue->getEmptyRoomAvailable(wrappingBuffer); in getEmptyFramesAvailable()202 int32_t AudioEndpoint::getFullFramesAvailable(WrappingBuffer *wrappingBuffer) in getFullFramesAvailable() argument204 return mDataQueue->getFullDataAvailable(wrappingBuffer); in getFullFramesAvailable()
52 int32_t getEmptyFramesAvailable(android::WrappingBuffer *wrappingBuffer);56 int32_t getFullFramesAvailable(android::WrappingBuffer *wrappingBuffer);
202 WrappingBuffer wrappingBuffer; in writeNowWithConversion() local206 mAudioEndpoint.getEmptyFramesAvailable(&wrappingBuffer); in writeNowWithConversion()212 int32_t framesAvailable = wrappingBuffer.numFrames[partIndex]; in writeNowWithConversion()229 wrappingBuffer.data[partIndex], in writeNowWithConversion()
53 WrappingBuffer wrappingBuffer; in mix() local61 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()
97 WrappingBuffer wrappingBuffer; in checkWrappingBuffer() local100 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()