diff options
| author | Eric Laurent <> | 2009-04-01 12:54:49 -0700 |
|---|---|---|
| committer | The Android Open Source Project <initial-contribution@android.com> | 2009-04-01 12:54:49 -0700 |
| commit | 1177ece66ba67c817c13243e0d05319ebc914bab (patch) | |
| tree | 19d130c04f10c2a09274e93da2ece2376b7869b6 /docs/html/sdk/api_diff/5/changes | |
| parent | ffaadd2b6ec0d0cd3d7df18365652992fc553deb (diff) | |
AI 144053: Fix issue #1751242 A2DP playback fails first time: Invalid buffer size: minFrameCount 10240, frameCount 4800
The problem comes from the fact that AudioSystem::getOutputFrameCount() calls getOutput() to retrieve the active output (A2DP or Hardware) before calling get_audio_flinger(). If it is the first time AudioSystem::getOutputFrameCount() is called in a given process, getOutput() will return a wrong value because gA2dpEnabled has not yet been updated by get_audio_flinger().
The fix consists in calling get_audio_flinger() in getOutput() to be sure that gA2dpEnabled is valid when getOutput() reads it.
BUG=1751242
Automated import of CL 144053
Diffstat (limited to 'docs/html/sdk/api_diff/5/changes')
0 files changed, 0 insertions, 0 deletions
