OSDN Git Service

fifo: fix bugs in lost frames calculation
authorGlenn Kasten <gkasten@google.com>
Wed, 19 Oct 2016 22:46:02 +0000 (15:46 -0700)
committerGlenn Kasten <gkasten@google.com>
Sat, 22 Oct 2016 00:35:44 +0000 (17:35 -0700)
commit44001d498c1718d3405905010d4523df587916cd
tree0aa90d30dffe84a76665dd82d865f4d9d426b6f7
parent1eb820606378e3e21a57eff869da6d23025f62dc
fifo: fix bugs in lost frames calculation

Problems fixed:
 - did not set the lost frames parameter to zero when no frames were lost
 - under-estimated lost frames by mFrameCount

Also improved the documentation about lost frames.

Test: currently using interactive test only, need an automated version
Change-Id: I8b056c9cf4ead0d197b4c3aeff8482a08710c4cb
audio_utils/fifo.cpp
audio_utils/include/audio_utils/fifo.h