diff options
| author | 2009-09-01 09:57:53 -0700 | |
|---|---|---|
| committer | 2009-09-01 09:57:53 -0700 | |
| commit | b51b40982d06813bd3b325b4f0d1fa698ab3f897 (patch) | |
| tree | 49e5aad05119e555bf34c2d7c055b5509a1e75ae | |
| parent | 5e2a385c0d95f4a99dd8c562c6d2d79aa8546030 (diff) | |
| parent | d069f32039c74d89fd158d1a25d8fdf445fd01c1 (diff) | |
Merge change 23438 into eclair
* changes:
Fix issue 2091594: music chirp after disconnecting A2DP.
| -rw-r--r-- | libs/audioflinger/AudioFlinger.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/libs/audioflinger/AudioFlinger.cpp b/libs/audioflinger/AudioFlinger.cpp index 3a419b579b89..ef7164152367 100644 --- a/libs/audioflinger/AudioFlinger.cpp +++ b/libs/audioflinger/AudioFlinger.cpp @@ -1449,6 +1449,8 @@ void AudioFlinger::MixerThread::putTracks( int j = activeTracks.indexOf(t); if (j >= 0) { mActiveTracks.add(t); + // force buffer refilling and no ramp volume when the track is mixed for the first time + t->mFillingUpStatus = Track::FS_FILLING; } } } @@ -3512,10 +3514,11 @@ status_t AudioFlinger::setStreamOutput(uint32_t stream, int output) if (tracks.size()) { dstThread->putTracks(tracks, activeTracks); } - dstThread->sendConfigEvent(AudioSystem::STREAM_CONFIG_CHANGED, stream); } } + dstThread->sendConfigEvent(AudioSystem::STREAM_CONFIG_CHANGED, stream); + return NO_ERROR; } |