OSDN Git Service

AudioTrack: fix write retries for compressed audio
authorEric Laurent <elaurent@google.com>
Thu, 29 Aug 2013 21:35:05 +0000 (14:35 -0700)
committerEric Laurent <elaurent@google.com>
Thu, 29 Aug 2013 21:35:05 +0000 (14:35 -0700)
commit42a6f422c09ca6a960673e0e805ddf71a9b51bef
tree7c38dd1f569bd9546f5cef3c5f58ff6ca35cbeff
parentbdd467edb8550ab006c89a59b556759386e99898
AudioTrack: fix write retries for compressed audio

When the amount of frames that can be written to the buffer
is less than requested, AudioTrack::processAudioBuffer() estimates
the time needed to free the missing amount of frames and asks the
callback thread to sleep.
This behavior is not possible for compressed audio and should not
be enabled for offloaded tracks.

Change-Id: I5b657283cfba06254c9ac0ea9b447467cce7eb61
media/libmedia/AudioTrack.cpp