summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMathias Agopian <mathias@google.com>2012-10-22 11:47:39 -0700
committerAndroid (Google) Code Review <android-gerrit@google.com>2012-10-22 11:47:40 -0700
commite384d75b95b9db30d64a18ada93e070cf07de306 (patch)
tree662ab646ba2cea0ef5267f2c071930dc0ffb4399
parent0328ec08dc1e90caa2a9e0c4e107d8ddaa74af20 (diff)
parent61ea117b03b53382b5ecbc33004c7d37ea70ea8b (diff)
Merge "Fix a typo that caused the high quality resampler to produce garbage" into jb-mr1-dev
-rw-r--r--services/audioflinger/AudioResamplerSinc.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/services/audioflinger/AudioResamplerSinc.cpp b/services/audioflinger/AudioResamplerSinc.cpp
index 90651f15..9e8447a0 100644
--- a/services/audioflinger/AudioResamplerSinc.cpp
+++ b/services/audioflinger/AudioResamplerSinc.cpp
@@ -252,7 +252,7 @@ void AudioResamplerSinc::resample(int32_t* out, size_t outFrameCount,
// FIXME store current state (up or down sample) and only load the coefs when the state
// changes. Or load two pointers one for up and one for down in the init function.
// Not critical now since the read functions are fast, but would be important if read was slow.
- if (readResampleCoefficients) {
+ if (mConstants == &veryHighQualityConstants && readResampleCoefficients) {
ALOGV("get coefficient from libmm-audio resampler library");
mFirCoefs = (mInSampleRate <= mSampleRate) ? readResampleCoefficients(true) :
readResampleCoefficients(false);