Home
last modified time | relevance | path

Searched refs:framesToRead (Results 1 – 6 of 6) sorted by relevance

/frameworks/av/media/libaaudio/src/fifo/
DFifoBuffer.cpp125 fifo_frames_t framesToRead = framesLeft; in read() local
128 if (framesToRead > framesAvailable) { in read()
129 framesToRead = framesAvailable; in read()
131 int32_t numBytes = convertFramesToBytes(framesToRead); in read()
135 framesLeft -= framesToRead; in read()
DFifoBuffer.h47 fifo_frames_t read(void *destination, fifo_frames_t framesToRead);
/frameworks/av/media/libaaudio/tests/
Dtest_atomic_fifo.cpp215 fifo_frames_t framesToRead = std::min(framesAvailable, numFrames); in verifyMultipleDataFrames() local
216 fifo_frames_t actual = mFifoBuffer.read(mData, framesToRead); in verifyMultipleDataFrames()
217 ASSERT_EQ(framesToRead, actual); in verifyMultipleDataFrames()
218 for (int i = 0; i < framesToRead; i++) { in verifyMultipleDataFrames()
228 fifo_frames_t framesToRead = std::min(framesAvailable, numFrames); in verifyRequestedData() local
229 fifo_frames_t actual = mFifoBuffer.read(mData, framesToRead); in verifyRequestedData()
/frameworks/av/media/libaaudio/src/legacy/
DAudioStreamRecord.cpp423 int32_t framesToRead = std::min(framesLeft, mFormatConversionBufferSizeInFrames); in read() local
424 size_t bytesToRead = framesToRead * bytesPerDeviceFrame; in read()
/frameworks/av/services/audioflinger/
DTracks.cpp2933 const size_t framesToRead = std::min(buffer->mFrameCount, mFrameCount); in obtainBuffer() local
2944 result = stream->read(mSinkBuffer.get(), framesToRead * mFrameSize, &bytesRead); in obtainBuffer()
DThreads.cpp7953 size_t framesToRead = min(mRsmpInFramesOA - rear, mRsmpInFramesP2 / 2); in threadLoop() local
7961 framesToRead); in threadLoop()