Lines Matching refs:framesAvailable
85 int32_t framesAvailable, in fillWrappingBuffer() argument
89 if (framesAvailable > 0) { in fillWrappingBuffer()
92 if ((startIndex + framesAvailable) > mFrameCapacity) { in fillWrappingBuffer()
97 wrappingBuffer->numFrames[1] = framesAvailable - firstFrames; in fillWrappingBuffer()
100 wrappingBuffer->numFrames[0] = framesAvailable; in fillWrappingBuffer()
110 fifo_frames_t framesAvailable = std::min(mFifo->getFullFramesAvailable(), mFrameCapacity); in getFullDataAvailable() local
112 fillWrappingBuffer(wrappingBuffer, framesAvailable, startIndex); in getFullDataAvailable()
113 return framesAvailable; in getFullDataAvailable()
118 fifo_frames_t framesAvailable = std::min(mFifo->getEmptyFramesAvailable(), mFrameCapacity); in getEmptyRoomAvailable() local
120 fillWrappingBuffer(wrappingBuffer, framesAvailable, startIndex); in getEmptyRoomAvailable()
121 return framesAvailable; in getEmptyRoomAvailable()
135 fifo_frames_t framesAvailable = wrappingBuffer.numFrames[partIndex]; in read() local
136 if (framesAvailable > 0) { in read()
137 if (framesToRead > framesAvailable) { in read()
138 framesToRead = framesAvailable; in read()
166 fifo_frames_t framesAvailable = wrappingBuffer.numFrames[partIndex]; in write() local
167 if (framesAvailable > 0) { in write()
168 if (framesToWrite > framesAvailable) { in write()
169 framesToWrite = framesAvailable; in write()