diff options
author | Eric Laurent <elaurent@google.com> | 2011-02-11 14:39:34 -0800 |
---|---|---|
committer | Eric Laurent <elaurent@google.com> | 2011-02-11 14:53:23 -0800 |
commit | 586b21780680c4d19723b5a9484e55ec47464c5f (patch) | |
tree | ca05505bad4f38a6b3a48d1244bfdc27bf17a239 /services | |
parent | 727a6f859841a1d421b680f56d4d4ca5ff8c6e4b (diff) | |
download | frameworks_av-586b21780680c4d19723b5a9484e55ec47464c5f.zip frameworks_av-586b21780680c4d19723b5a9484e55ec47464c5f.tar.gz frameworks_av-586b21780680c4d19723b5a9484e55ec47464c5f.tar.bz2 |
Fix issue 3400751.
Add a delay before restoring output path when a notification ends so that
short sounds can be heard on proper device before the path is actualy switched.
Change-Id: I1d2dd8e7e28e15fbcab344256f88499b26297372
Diffstat (limited to 'services')
-rw-r--r-- | services/audioflinger/AudioPolicyManagerBase.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/services/audioflinger/AudioPolicyManagerBase.cpp b/services/audioflinger/AudioPolicyManagerBase.cpp index 6a82a59..3082d45 100644 --- a/services/audioflinger/AudioPolicyManagerBase.cpp +++ b/services/audioflinger/AudioPolicyManagerBase.cpp @@ -610,7 +610,7 @@ status_t AudioPolicyManagerBase::stopOutput(audio_io_handle_t output, // store time at which the stream was stopped - see isStreamActive() outputDesc->mStopTime[stream] = systemTime(); - setOutputDevice(output, getNewDevice(output)); + setOutputDevice(output, getNewDevice(output), false, outputDesc->mLatency*2); #ifdef WITH_A2DP if (mA2dpOutput != 0 && !a2dpUsedForSonification() && |