summaryrefslogtreecommitdiff
path: root/services/audioflinger/AudioMixer.cpp
diff options
context:
space:
mode:
author Glenn Kasten <gkasten@google.com> 2012-03-21 07:24:21 -0700
committer Android (Google) Code Review <android-gerrit@google.com> 2012-03-21 07:24:21 -0700
commit652e18d896870c6733412b63c4c99657cc60946e (patch)
treed81efb3f4ba65d1a4b9e95cd462fd4eb21c98eaf /services/audioflinger/AudioMixer.cpp
parent32d72b2f538673466f6e0ebf01886412e803dc4f (diff)
parent76b6c0c1f57f5b6b5b5d46f0a835a3c36f48b7f3 (diff)
Merge "Update comments"
Diffstat (limited to 'services/audioflinger/AudioMixer.cpp')
-rw-r--r--services/audioflinger/AudioMixer.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/services/audioflinger/AudioMixer.cpp b/services/audioflinger/AudioMixer.cpp
index 6e761ba76bfe..98852fd7e8de 100644
--- a/services/audioflinger/AudioMixer.cpp
+++ b/services/audioflinger/AudioMixer.cpp
@@ -57,6 +57,10 @@ AudioMixer::AudioMixer(size_t frameCount, uint32_t sampleRate)
mState.outputTemp = NULL;
mState.resampleTemp = NULL;
// mState.reserved
+
+ // FIXME Most of the following initialization is probably redundant since
+ // tracks[i] should only be referenced if (mTrackNames & (1 << i)) != 0
+ // and mTrackNames is initially 0. However, leave it here until that's verified.
track_t* t = mState.tracks;
for (unsigned i=0 ; i < MAX_NUM_TRACKS ; i++) {
t->needs = 0;