diff options
author | Glenn Kasten <gkasten@google.com> | 2013-10-18 13:00:29 -0700 |
---|---|---|
committer | Glenn Kasten <gkasten@google.com> | 2013-10-18 13:53:41 -0700 |
commit | 2e422c472c91aa7912befd0fc038d1e11f354bc1 (patch) | |
tree | 7583e04f353f9cadf5081fafdcb8042450e3c85c /services | |
parent | dedc7b0fa23c21b525dc8abb572bb8161ad66a9b (diff) | |
download | frameworks_av-2e422c472c91aa7912befd0fc038d1e11f354bc1.zip frameworks_av-2e422c472c91aa7912befd0fc038d1e11f354bc1.tar.gz frameworks_av-2e422c472c91aa7912befd0fc038d1e11f354bc1.tar.bz2 |
Allow releaseBuffer after flush
After AudioTrack start checks for pending flush,
allow releaseBuffer on any previously obtained buffer.
For example, this can happen if the resampler has obtained
a buffer but not released the whole buffer yet.
Note that the resampler will be reading obsolete data.
Bug: 11285590
Change-Id: I0614fbb62e43604aac3089cce4b7797c87a306b5
Diffstat (limited to 'services')
-rw-r--r-- | services/audioflinger/Tracks.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/services/audioflinger/Tracks.cpp b/services/audioflinger/Tracks.cpp index e93833f..363bc9d 100644 --- a/services/audioflinger/Tracks.cpp +++ b/services/audioflinger/Tracks.cpp @@ -608,7 +608,7 @@ status_t AudioFlinger::PlaybackThread::Track::start(AudioSystem::sync_event_t ev // and for fast tracks the track is not yet in the fast mixer thread's active set. ServerProxy::Buffer buffer; buffer.mFrameCount = 1; - (void) mAudioTrackServerProxy->obtainBuffer(&buffer); + (void) mAudioTrackServerProxy->obtainBuffer(&buffer, true /*ackFlush*/); } } else { status = BAD_VALUE; |