summaryrefslogtreecommitdiffstats
path: root/services/audioflinger
diff options
context:
space:
mode:
authorAndy Hung <hunga@google.com>2015-09-09 14:39:02 -0700
committerGlenn Kasten <gkasten@google.com>2015-10-13 15:48:31 -0700
commit954ca45ac30539a49f179580b667b0ab1056d113 (patch)
tree33adc92ecf3ea0bbafa97882e61381e3a8bf1204 /services/audioflinger
parente5200ea76c5d180b53087ae7825326ec61cc4687 (diff)
downloadframeworks_av-954ca45ac30539a49f179580b667b0ab1056d113.zip
frameworks_av-954ca45ac30539a49f179580b667b0ab1056d113.tar.gz
frameworks_av-954ca45ac30539a49f179580b667b0ab1056d113.tar.bz2
For static obtainBuffer(), do not set mUnreleased if acknowledging flush.
static audio tracks use obtainBuffer() to update position in start(). Bug: 22938515 Change-Id: I8ae32f6cce4d122386d2cf8982e158049b04ba9a
Diffstat (limited to 'services/audioflinger')
-rw-r--r--services/audioflinger/Tracks.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/services/audioflinger/Tracks.cpp b/services/audioflinger/Tracks.cpp
index b3fac0b..0e24b52 100644
--- a/services/audioflinger/Tracks.cpp
+++ b/services/audioflinger/Tracks.cpp
@@ -715,6 +715,7 @@ status_t AudioFlinger::PlaybackThread::Track::start(AudioSystem::sync_event_t ev
// But in this case we know the mixer thread (whether normal mixer or fast mixer)
// isn't looking at this track yet: we still hold the normal mixer thread lock,
// and for fast tracks the track is not yet in the fast mixer thread's active set.
+ // For static tracks, this is used to acknowledge change in position or loop.
ServerProxy::Buffer buffer;
buffer.mFrameCount = 1;
(void) mAudioTrackServerProxy->obtainBuffer(&buffer, true /*ackFlush*/);