Searched refs:framesAvailable (Results 1 – 9 of 9) sorted by relevance
/frameworks/av/media/libaaudio/src/fifo/ |
D | FifoBuffer.cpp | 75 int32_t framesAvailable, in fillWrappingBuffer() argument 79 if (framesAvailable > 0) { in fillWrappingBuffer() 83 if ((startIndex + framesAvailable) > capacity) { in fillWrappingBuffer() 88 wrappingBuffer->numFrames[1] = framesAvailable - firstFrames; in fillWrappingBuffer() 91 wrappingBuffer->numFrames[0] = framesAvailable; in fillWrappingBuffer() 101 fifo_frames_t framesAvailable = std::min(mFifo->getFullFramesAvailable(), in getFullDataAvailable() local 104 fillWrappingBuffer(wrappingBuffer, framesAvailable, startIndex); in getFullDataAvailable() 105 return framesAvailable; in getFullDataAvailable() 110 fifo_frames_t framesAvailable = std::min(mFifo->getEmptyFramesAvailable(), in getEmptyRoomAvailable() local 113 fillWrappingBuffer(wrappingBuffer, framesAvailable, startIndex); in getEmptyRoomAvailable() [all …]
|
D | FifoBuffer.h | 127 int32_t framesAvailable, int32_t startIndex);
|
/frameworks/av/media/libaaudio/tests/ |
D | test_atomic_fifo.cpp | 160 fifo_frames_t framesAvailable = in verifyWrappingBuffer() local 163 EXPECT_EQ(framesAvailable, wrapAvailable); in verifyWrappingBuffer() 165 EXPECT_EQ(framesAvailable, bothAvailable); in verifyWrappingBuffer() 167 framesAvailable = in verifyWrappingBuffer() 170 EXPECT_EQ(framesAvailable, wrapAvailable); in verifyWrappingBuffer() 172 EXPECT_EQ(framesAvailable, bothAvailable); in verifyWrappingBuffer() 200 fifo_frames_t framesAvailable = in writeMultipleDataFrames() local 202 fifo_frames_t framesToWrite = std::min(framesAvailable, numFrames); in writeMultipleDataFrames() 212 fifo_frames_t framesAvailable = in verifyMultipleDataFrames() local 214 fifo_frames_t framesToRead = std::min(framesAvailable, numFrames); in verifyMultipleDataFrames() [all …]
|
/frameworks/av/media/libaaudio/src/client/ |
D | AudioStreamInternalCapture.cpp | 173 const int32_t framesAvailable = wrappingBuffer.numFrames[partIndex]; in readNowWithConversion() local 174 if (framesAvailable <= 0) break; in readNowWithConversion() 176 if (framesToProcess > framesAvailable) { in readNowWithConversion() 177 framesToProcess = framesAvailable; in readNowWithConversion()
|
D | AudioStreamInternalPlay.cpp | 221 int32_t framesAvailable = wrappingBuffer.numFrames[partIndex]; in writeNowWithConversion() local 222 if (framesAvailable > 0) { in writeNowWithConversion() 223 if (framesToWrite > framesAvailable) { in writeNowWithConversion() 224 framesToWrite = framesAvailable; in writeNowWithConversion()
|
/frameworks/av/media/libaaudio/examples/loopback/src/ |
D | loopback.cpp | 225 int64_t framesAvailable = inputFramesWritten - inputFramesRead; in MyDataCallbackProc() local 233 if(actualFramesRead < (int32_t) framesAvailable) { in MyDataCallbackProc() 243 (int) framesAvailable); in MyDataCallbackProc() 706 const int64_t framesAvailable = framesWritten - framesRead; in main() local 712 printf(" written - read = %8d\n", (int) framesAvailable); in main() 718 if (framesAvailable > 2 * actualInputCapacity) { in main()
|
/frameworks/av/services/oboeservice/ |
D | AAudioServiceStreamBase.cpp | 352 int32_t framesAvailable = mUpMessageQueue->getFifoBuffer() in isUpMessageQueueBusy() local 357 return framesAvailable >= (capacity / 2); in isUpMessageQueueBusy()
|
/frameworks/av/services/audioflinger/ |
D | Threads.h | 1530 virtual void sync(size_t *framesAvailable = NULL, bool *hasOverrun = NULL);
|
D | Threads.cpp | 7985 size_t *framesAvailable, bool *hasOverrun) in sync() argument 8009 if (framesAvailable != NULL) { in sync() 8010 *framesAvailable = framesIn; in sync()
|