OSDN Git Service

Fix AudioTrack offloaded timestamp handling.
authorAndy Hung <hunga@google.com>
Fri, 12 Sep 2014 21:43:11 +0000 (14:43 -0700)
committerLajos Molnar <lajos@google.com>
Wed, 17 Sep 2014 23:07:05 +0000 (23:07 +0000)
commit7f1bc8af1c46695191bf7e2aba6467f3616629c0
tree905b0091037bea59f81df3cc6e49c2cfd1d7d24d
parent90869c2bef1bc47394a9f603ccebb62b2592fd2b
Fix AudioTrack offloaded timestamp handling.

getTimestamp for offloaded tracks now returns WOULD_BLOCK for
situations where the timestamp is unavailable due to the
previous track still flushing or the timestamp is stale.
It is fixed for normal playback conditions.

Bug: 14659809
Bug: 17428188
Change-Id: Ic9ec07ccabc604236979769db5c4ea2dec252660
include/media/AudioTrack.h
media/libmedia/AudioTrack.cpp