Home
last modified time | relevance | path

Searched refs:framesToWrite (Results 1 – 4 of 4) sorted by relevance

/frameworks/av/media/libaaudio/src/client/
DAudioStreamInternalPlay.cpp242 int32_t framesToWrite = framesLeft; in writeNowWithConversion() local
245 if (framesToWrite > framesAvailable) { in writeNowWithConversion()
246 framesToWrite = framesAvailable; in writeNowWithConversion()
249 int32_t numBytes = getBytesPerFrame() * framesToWrite; in writeNowWithConversion()
253 framesToWrite); in writeNowWithConversion()
256 framesLeft -= framesToWrite; in writeNowWithConversion()
/frameworks/av/media/libaaudio/src/fifo/
DFifoBuffer.cpp156 fifo_frames_t framesToWrite = framesLeft; in write() local
159 if (framesToWrite > framesAvailable) { in write()
160 framesToWrite = framesAvailable; in write()
162 int32_t numBytes = convertFramesToBytes(framesToWrite); in write()
166 framesLeft -= framesToWrite; in write()
DFifoBuffer.h49 fifo_frames_t write(const void *source, fifo_frames_t framesToWrite);
/frameworks/av/media/libaaudio/tests/
Dtest_atomic_fifo.cpp203 fifo_frames_t framesToWrite = std::min(framesAvailable, numFrames); in writeMultipleDataFrames() local
204 for (int i = 0; i < framesToWrite; i++) { in writeMultipleDataFrames()
207 fifo_frames_t actual = mFifoBuffer.write(mData, framesToWrite); in writeMultipleDataFrames()
208 ASSERT_EQ(framesToWrite, actual); in writeMultipleDataFrames()