summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Android (Google) Code Review <android-gerrit@google.com> 2009-09-01 09:57:53 -0700
committer Android (Google) Code Review <android-gerrit@google.com> 2009-09-01 09:57:53 -0700
commit9f29120f0534fbe62881fb1dfc64a295a1a44d7f (patch)
treef47c585c457a7fed85f6a9d83c8d2b5de35ee9f1
parentd06abf0cafca969668f321b55b80d3901694761c (diff)
parent0643771ad09faad0b75565291fe4d41bfc8d4be2 (diff)
Merge change 23438 into eclair
* changes: Fix issue 2091594: music chirp after disconnecting A2DP.
-rw-r--r--libs/audioflinger/AudioFlinger.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/libs/audioflinger/AudioFlinger.cpp b/libs/audioflinger/AudioFlinger.cpp
index 3a419b579b..ef71641523 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;
}