OSDN Git Service

aaudio: fix getXRunCount
authorPhil Burk <philburk@google.com>
Tue, 25 Jul 2017 22:15:07 +0000 (15:15 -0700)
committerPhil Burk <philburk@google.com>
Fri, 28 Jul 2017 20:19:29 +0000 (13:19 -0700)
commitfaeb8b20e8ce98d308ca5ec095eeba6583cd9ec6
treeca5897bcd530e9f0e5167d30ed7945171d0a11c9
parentd478859f02323b03e2927a10055c42331f6dacc7
aaudio: fix getXRunCount

Mixer was not advancing FIFO when underflowed so the client could not
detect the xrun.
Also underruns could cause the stream to drift in time relative to other
streams.

Bug: 64033855
Test: trigger underruns by sleeping in a callback
Change-Id: Ia038f5048ffbff3b82e9d86e6807483dfe6879d0
media/libaaudio/examples/utils/AAudioSimplePlayer.h
media/libaaudio/examples/write_sine/src/write_sine_callback.cpp
services/oboeservice/AAudioMixer.cpp