Loading media/libaaudio/src/fifo/FifoControllerBase.cpp +5 −0 Original line number Diff line number Diff line Loading @@ -59,5 +59,10 @@ void FifoControllerBase::advanceWriteIndex(fifo_frames_t numFrames) { } void FifoControllerBase::setThreshold(fifo_frames_t threshold) { if (threshold > mCapacity) { threshold = mCapacity; } else if (threshold < 0) { threshold = 0; } mThreshold = threshold; } media/libaaudio/src/fifo/FifoControllerBase.h +3 −0 Original line number Diff line number Diff line Loading @@ -102,6 +102,9 @@ public: /** * You can request that the buffer not be filled above a maximum * number of frames. * * The threshold will be clipped between zero and the buffer capacity. * * @param threshold effective size of the buffer */ void setThreshold(fifo_frames_t threshold); Loading Loading
media/libaaudio/src/fifo/FifoControllerBase.cpp +5 −0 Original line number Diff line number Diff line Loading @@ -59,5 +59,10 @@ void FifoControllerBase::advanceWriteIndex(fifo_frames_t numFrames) { } void FifoControllerBase::setThreshold(fifo_frames_t threshold) { if (threshold > mCapacity) { threshold = mCapacity; } else if (threshold < 0) { threshold = 0; } mThreshold = threshold; }
media/libaaudio/src/fifo/FifoControllerBase.h +3 −0 Original line number Diff line number Diff line Loading @@ -102,6 +102,9 @@ public: /** * You can request that the buffer not be filled above a maximum * number of frames. * * The threshold will be clipped between zero and the buffer capacity. * * @param threshold effective size of the buffer */ void setThreshold(fifo_frames_t threshold); Loading