Home
last modified time | relevance | path

Searched refs:framesAvailable (Results 1 – 8 of 8) sorted by relevance

/frameworks/av/media/libaaudio/src/fifo/
DFifoBuffer.cpp72 int32_t framesAvailable, in fillWrappingBuffer() argument
77 if (framesAvailable > 0) { in fillWrappingBuffer()
81 if ((startIndex + framesAvailable) > capacity) { in fillWrappingBuffer()
86 wrappingBuffer->numFrames[1] = framesAvailable - firstFrames; in fillWrappingBuffer()
89 wrappingBuffer->numFrames[0] = framesAvailable; in fillWrappingBuffer()
99 fifo_frames_t framesAvailable = std::min(mFifo->getFullFramesAvailable(), in getFullDataAvailable() local
102 fillWrappingBuffer(wrappingBuffer, framesAvailable, startIndex); in getFullDataAvailable()
103 return framesAvailable; in getFullDataAvailable()
108 fifo_frames_t framesAvailable = std::min(mFifo->getEmptyFramesAvailable(), in getEmptyRoomAvailable() local
111 fillWrappingBuffer(wrappingBuffer, framesAvailable, startIndex); in getEmptyRoomAvailable()
[all …]
DFifoBuffer.h130 int32_t framesAvailable, int32_t startIndex);
/frameworks/av/media/libaaudio/tests/
Dtest_atomic_fifo.cpp161 fifo_frames_t framesAvailable = in verifyWrappingBuffer() local
164 EXPECT_EQ(framesAvailable, wrapAvailable); in verifyWrappingBuffer()
166 EXPECT_EQ(framesAvailable, bothAvailable); in verifyWrappingBuffer()
168 framesAvailable = in verifyWrappingBuffer()
171 EXPECT_EQ(framesAvailable, wrapAvailable); in verifyWrappingBuffer()
173 EXPECT_EQ(framesAvailable, bothAvailable); in verifyWrappingBuffer()
201 fifo_frames_t framesAvailable = in writeMultipleDataFrames() local
203 fifo_frames_t framesToWrite = std::min(framesAvailable, numFrames); in writeMultipleDataFrames()
213 fifo_frames_t framesAvailable = in verifyMultipleDataFrames() local
215 fifo_frames_t framesToRead = std::min(framesAvailable, numFrames); in verifyMultipleDataFrames()
[all …]
/frameworks/av/services/oboeservice/
DSharedRingBuffer.cpp101 int32_t framesAvailable = mFifoBuffer->getFullFramesAvailable(); in getFractionalFullness() local
103 return framesAvailable / (double) capacity; in getFractionalFullness()
DAAudioServiceEndpointMMAP.cpp695 fifo_frames_t framesAvailable = fifo->getFullDataAvailable(&wrappingBuffer); in reportData() local
701 fifo->advanceReadIndex(framesAvailable); in reportData()
/frameworks/av/media/libaaudio/examples/loopback/src/
Dloopback.cpp249 int64_t framesAvailable = inputFramesWritten - inputFramesRead; in MyDataCallbackProc() local
257 if(actualFramesRead < (int32_t) framesAvailable) { in MyDataCallbackProc()
267 (int) framesAvailable); in MyDataCallbackProc()
730 const int64_t framesAvailable = framesWritten - framesRead; in main() local
736 printf(" written - read = %8d\n", (int) framesAvailable); in main()
742 if (framesAvailable > 2 * actualInputCapacity) { in main()
/frameworks/av/services/audioflinger/
DResamplerBufferProvider.h48 void sync(size_t* framesAvailable = nullptr, bool* hasOverrun = nullptr);
DThreads.cpp9492 size_t *framesAvailable, bool *hasOverrun) in sync() argument
9516 if (framesAvailable != NULL) { in sync()
9517 *framesAvailable = framesIn; in sync()