diff options
author | Eric Laurent <elaurent@google.com> | 2013-09-26 17:23:10 -0700 |
---|---|---|
committer | Eric Laurent <elaurent@google.com> | 2013-09-27 09:22:22 -0700 |
commit | 91b0ca1a5bea44dd9b5196910186dd2927821994 (patch) | |
tree | e767acc4afa236de4c62db0383a9440baea8d539 /media/libeffects/visualizer | |
parent | 0adc67dfc5cedb211c36f06849681a60a32f5805 (diff) | |
download | frameworks_av-91b0ca1a5bea44dd9b5196910186dd2927821994.zip frameworks_av-91b0ca1a5bea44dd9b5196910186dd2927821994.tar.gz frameworks_av-91b0ca1a5bea44dd9b5196910186dd2927821994.tar.bz2 |
fix playback position after switching to offload
After switching from offloaded track to PCM track
while paused (e.g. when connecting A2DP), playback
restarts from the beginning of the song when resuming.
Save current position before recreating an AudioPlayer
in AwesomePlayer::play_l() and seek to the saved position before
starting playback.
Also fix a problem where the position is not reported properly
by AudioPlayer if a seek is pending and queried just after start
and before the first buffer is read from the MediaSource.
Bug: 8174034.
Change-Id: I254e65418ff903a9bf2e2111b89a00e2e54876c5
Diffstat (limited to 'media/libeffects/visualizer')
0 files changed, 0 insertions, 0 deletions