OSDN Git Service

Fix miscellanous AudioTrack::getTimestamp() bugs
authorGlenn Kasten <gkasten@google.com>
Fri, 30 Aug 2013 20:28:22 +0000 (13:28 -0700)
committerGlenn Kasten <gkasten@google.com>
Tue, 3 Sep 2013 22:19:03 +0000 (15:19 -0700)
commitfe346c707f59d763ded93bc3d27b51f0c0408258
tree3e6f12ac7b37bc8ef10845c4c7ccdcfef4b51cd5
parent4d0815d694e5a2edb3ce48427de50f55d0f84c0b
Fix miscellanous AudioTrack::getTimestamp() bugs

Check that get_presentation_position is non-NULL before calling.

AudioTrack::getTimestamp not implemented for fast tracks.

Fix typo in Track::getTimestamp().

Fix bugs in AudioTrack::getTimestamp after stop:
 - getTimestamp while stopped is not allowed.
 - stop, start, getTimestamp now returns the correct value.

Change-Id: Ie8d9dc1f28d8927634e04175a68b147ffc2ea8eb
media/libmedia/AudioTrack.cpp
media/libnbaio/AudioStreamOutSink.cpp
services/audioflinger/Tracks.cpp