From 4bd7e5436f9c308503d72e80804fb5637fda1584 Mon Sep 17 00:00:00 2001 From: Glenn Kasten Date: Thu, 15 Nov 2012 14:13:16 -0800 Subject: [PATCH] Static AudioTrack plays twice initially Bug: 7528721 Change-Id: I10bc16a26f33dba6572b730a170cb3bf00e68e30 --- services/audioflinger/AudioFlinger.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/services/audioflinger/AudioFlinger.cpp b/services/audioflinger/AudioFlinger.cpp index 10f4410620..5bb599b382 100644 --- a/services/audioflinger/AudioFlinger.cpp +++ b/services/audioflinger/AudioFlinger.cpp @@ -4710,7 +4710,7 @@ void AudioFlinger::PlaybackThread::Track::flush() if (thread != 0) { Mutex::Autolock _l(thread->mLock); if (mState != STOPPING_1 && mState != STOPPING_2 && mState != STOPPED && mState != PAUSED && - mState != PAUSING) { + mState != PAUSING && mState != IDLE && mState != FLUSHED) { return; } // No point remaining in PAUSED state after a flush => go to -- 2.11.0