Home
last modified time | relevance | path

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

/frameworks/av/media/libaaudio/src/client/
DAudioStreamInternalPlay.cpp211 int32_t framesToWrite = framesLeft; in writeNowWithConversion() local
214 if (framesToWrite > framesAvailable) { in writeNowWithConversion()
215 framesToWrite = framesAvailable; in writeNowWithConversion()
218 int32_t numBytes = getBytesPerFrame() * framesToWrite; in writeNowWithConversion()
222 mVolumeRamp.nextSegment(framesToWrite, &levelFrom, &levelTo); in writeNowWithConversion()
233 AAudioDataConverter::convert(source, destination, framesToWrite, in writeNowWithConversion()
237 framesLeft -= framesToWrite; in writeNowWithConversion()
/frameworks/av/media/libaaudio/src/fifo/
DFifoBuffer.cpp165 fifo_frames_t framesToWrite = framesLeft; in write() local
168 if (framesToWrite > framesAvailable) { in write()
169 framesToWrite = framesAvailable; in write()
171 int32_t numBytes = convertFramesToBytes(framesToWrite); in write()
175 framesLeft -= framesToWrite; in write()
DFifoBuffer.h54 fifo_frames_t write(const void *source, fifo_frames_t framesToWrite);
/frameworks/av/media/libaaudio/tests/
Dtest_atomic_fifo.cpp117 fifo_frames_t framesToWrite = std::min(framesAvailable, numFrames); in writeData() local
118 for (int i = 0; i < framesToWrite; i++) { in writeData()
121 fifo_frames_t actual = mFifoBuffer.write(mData, framesToWrite); in writeData()
122 ASSERT_EQ(framesToWrite, actual); in writeData()