summaryrefslogtreecommitdiffstats
path: root/media/libmedia/AudioTrack.cpp
diff options
context:
space:
mode:
authorAndy Hung <hunga@google.com>2015-05-31 23:16:07 -0700
committerAndy Hung <hunga@google.com>2015-06-03 22:42:14 -0700
commit005e9d0300fc326a076ec17b7fa6dd4f51568f55 (patch)
treed9995f9aa6e174e73211e862526be8b13e5cec66 /media/libmedia/AudioTrack.cpp
parent85e48142f726770d3b65caa1f29d8b98f8d5db6b (diff)
downloadframeworks_av-005e9d0300fc326a076ec17b7fa6dd4f51568f55.zip
frameworks_av-005e9d0300fc326a076ec17b7fa6dd4f51568f55.tar.gz
frameworks_av-005e9d0300fc326a076ec17b7fa6dd4f51568f55.tar.bz2
NuPlayer: Allow audio drain to fill buffer when paused
If a pause lasts more than a few seconds, the audio device enters standby. When the audio device comes out of standby, it typically requests a large amount of data to fill its buffers (especially severe for deep buffer PCM mode). To avoid a glitch, continue to fill the buffer (until no more data can be written) when paused. Also, we do not start the audio sink if we are paused to avoid audio playback in video preview mode. Bug: 19062223 Bug: 21198655 Change-Id: Ifb3f181d5e810283381b65f2af16a4c71df0b04f
Diffstat (limited to 'media/libmedia/AudioTrack.cpp')
0 files changed, 0 insertions, 0 deletions