diff options
author | Glenn Kasten <gkasten@google.com> | 2014-04-07 13:02:08 -0700 |
---|---|---|
committer | Glenn Kasten <gkasten@google.com> | 2014-04-07 13:03:40 -0700 |
commit | bc6ae9bd4ee93e91e212ad35be038f21797ef31e (patch) | |
tree | 848701c25988f69b4a2c10ae1c25afb28cf84725 | |
parent | c51db0a6bfb71ea9c934fb7971cb5ae1f1cf03a0 (diff) | |
download | frameworks_av-bc6ae9bd4ee93e91e212ad35be038f21797ef31e.zip frameworks_av-bc6ae9bd4ee93e91e212ad35be038f21797ef31e.tar.gz frameworks_av-bc6ae9bd4ee93e91e212ad35be038f21797ef31e.tar.bz2 |
Fix regression in FastMixer statistics
At some point, the mSampleRate in FastMixerDumpState stopped being
initialized correctly. I'm not sure when this happened, it doesn't seem to
be introduced in recent CLs. This lack of initialization caused
some of the FastMixer statistics based on sample rate to be useless.
Change-Id: Id2a96d606130a90c4c4f1bddd59778f6c6428a9c
-rw-r--r-- | services/audioflinger/FastMixer.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/services/audioflinger/FastMixer.cpp b/services/audioflinger/FastMixer.cpp index adb4aca..ca0d65e 100644 --- a/services/audioflinger/FastMixer.cpp +++ b/services/audioflinger/FastMixer.cpp @@ -236,6 +236,7 @@ bool FastMixer::threadLoop() sampleRate = Format_sampleRate(format); ALOG_ASSERT(Format_channelCount(format) == FCC_2); } + dumpState->mSampleRate = sampleRate; } if ((!Format_isEqual(format, previousFormat)) || (frameCount != previous->mFrameCount)) { |