summaryrefslogtreecommitdiffstats
path: root/media/libmediaplayerservice/nuplayer/NuPlayerRenderer.cpp
diff options
context:
space:
mode:
authorAndy Hung <hunga@google.com>2015-05-31 21:54:49 -0700
committerAndy Hung <hunga@google.com>2015-06-03 22:26:17 -0700
commita7f03353d5f172016f324e2a01f301cca6794152 (patch)
tree50ac6c8e46e5c60624b96008c2de4585f24364c9 /media/libmediaplayerservice/nuplayer/NuPlayerRenderer.cpp
parent4170eeec0a2dc2a9543b7e4674a43b3d2faac61d (diff)
downloadframeworks_av-a7f03353d5f172016f324e2a01f301cca6794152.zip
frameworks_av-a7f03353d5f172016f324e2a01f301cca6794152.tar.gz
frameworks_av-a7f03353d5f172016f324e2a01f301cca6794152.tar.bz2
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
Diffstat (limited to 'media/libmediaplayerservice/nuplayer/NuPlayerRenderer.cpp')
0 files changed, 0 insertions, 0 deletions