commit | 42a6f422c09ca6a960673e0e805ddf71a9b51bef | [log] [tgz] |
---|---|---|
author | Eric Laurent <elaurent@google.com> | Thu Aug 29 14:35:05 2013 -0700 |
committer | Eric Laurent <elaurent@google.com> | Thu Aug 29 14:35:05 2013 -0700 |
tree | 7c38dd1f569bd9546f5cef3c5f58ff6ca35cbeff | |
parent | bdd467edb8550ab006c89a59b556759386e99898 [diff] |
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