commit | a7f03353d5f172016f324e2a01f301cca6794152 | [log] [tgz] |
---|---|---|
author | Andy Hung <hunga@google.com> | Sun May 31 21:54:49 2015 -0700 |
committer | Andy Hung <hunga@google.com> | Wed Jun 03 22:26:17 2015 -0700 |
tree | 50ac6c8e46e5c60624b96008c2de4585f24364c9 | |
parent | 4170eeec0a2dc2a9543b7e4674a43b3d2faac61d [diff] |
Compute sleep time when AudioTrack client callback returns no PCM data Callbacks can go into a sleep-wait cycle if the client/app is unable to deliver data. This can happen if the buffer is large, or if the client/app cannot keep the buffer filled, or upon a stream end condition. We improve the sleep time computation for AudioTrack PCM callbacks. This minimizes the number of callbacks to NuPlayerRenderer. Bug: 21198655 Change-Id: I4247798a6638def2f0d8f1b46f60323482065cb2