Searched refs:framesAvailable (Results 1 – 8 of 8) sorted by relevance
/frameworks/av/media/libaaudio/src/fifo/ |
D | FifoBuffer.cpp | 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() [all …]
|
D | FifoBuffer.h | 122 int32_t framesAvailable, int32_t startIndex);
|
/frameworks/av/media/libaaudio/tests/ |
D | test_atomic_fifo.cpp | 98 fifo_frames_t framesAvailable = in checkWrappingBuffer() local 101 EXPECT_EQ(framesAvailable, wrapAvailable); in checkWrappingBuffer() 103 EXPECT_EQ(framesAvailable, bothAvailable); in checkWrappingBuffer() 105 framesAvailable = in checkWrappingBuffer() 108 EXPECT_EQ(framesAvailable, wrapAvailable); in checkWrappingBuffer() 110 EXPECT_EQ(framesAvailable, bothAvailable); in checkWrappingBuffer() 115 fifo_frames_t framesAvailable = in writeData() local 117 fifo_frames_t framesToWrite = std::min(framesAvailable, numFrames); in writeData() 127 fifo_frames_t framesAvailable = in verifyData() local 129 fifo_frames_t framesToRead = std::min(framesAvailable, numFrames); in verifyData()
|
/frameworks/av/media/libaaudio/src/client/ |
D | AudioStreamInternalCapture.cpp | 168 int32_t framesAvailable = wrappingBuffer.numFrames[partIndex]; in readNowWithConversion() local 169 if (framesAvailable <= 0) break; in readNowWithConversion() 171 if (framesToProcess > framesAvailable) { in readNowWithConversion() 172 framesToProcess = framesAvailable; in readNowWithConversion()
|
D | AudioStreamInternalPlay.cpp | 212 int32_t framesAvailable = wrappingBuffer.numFrames[partIndex]; in writeNowWithConversion() local 213 if (framesAvailable > 0) { in writeNowWithConversion() 214 if (framesToWrite > framesAvailable) { in writeNowWithConversion() 215 framesToWrite = framesAvailable; in writeNowWithConversion()
|
/frameworks/av/media/libaaudio/examples/loopback/src/ |
D | loopback.cpp | 176 int64_t framesAvailable = inputFramesWritten - inputFramesRead; in MyDataCallbackProc() local 183 if(actualFramesRead < (int32_t) framesAvailable) { in MyDataCallbackProc() 193 (int) framesAvailable); in MyDataCallbackProc()
|
/frameworks/av/services/audioflinger/ |
D | Threads.h | 1355 virtual void sync(size_t *framesAvailable = NULL, bool *hasOverrun = NULL);
|
D | Threads.cpp | 7383 size_t *framesAvailable, bool *hasOverrun) in sync() argument 7406 if (framesAvailable != NULL) { in sync() 7407 *framesAvailable = framesIn; in sync()
|