OSDN Git Service

fifo: add new APIs, and other cleanup
authorGlenn Kasten <gkasten@google.com>
Wed, 19 Oct 2016 19:14:46 +0000 (12:14 -0700)
committerGlenn Kasten <gkasten@google.com>
Fri, 11 Nov 2016 01:57:09 +0000 (17:57 -0800)
commit0f8503915063b614599fd8016a550b1f408f7c2d
treedcb30b99c2b870ce281d3933d7722f47272467cd
parentee2d20dc26a1aea5bfaa7eaf87a1ca38c03a98ac
fifo: add new APIs, and other cleanup

New APIs:
 - buffer()
 - capacity()
 - flush()
 - frameSize()
 - totalFlushed()
 - totalLost()
 - totalReleased()

Pull up mFifo from writer and reader into the base provider class.

Update documentation.

Test: see unit tests in tests/ directory
Change-Id: I1957638c69e1c1dc742b6f024156def757736867
audio_utils/fifo.cpp
audio_utils/include/audio_utils/fifo.h