diff options
author | Mathias Agopian <mathias@google.com> | 2012-10-22 11:52:14 -0700 |
---|---|---|
committer | Android Git Automerger <android-git-automerger@android.com> | 2012-10-22 11:52:14 -0700 |
commit | 7f4d5714f3f0ab4efaf2d0929a9f984467ef95c7 (patch) | |
tree | 7dce4e8009c6ae3281b9f5f3b38d94f66a8d5ea7 | |
parent | dc5f12a217279d60444fc7243fe89ba4311eea88 (diff) | |
parent | e384d75b95b9db30d64a18ada93e070cf07de306 (diff) |
am e384d75b: Merge "Fix a typo that caused the high quality resampler to produce garbage" into jb-mr1-dev
* commit 'e384d75b95b9db30d64a18ada93e070cf07de306':
Fix a typo that caused the high quality resampler to produce garbage
-rw-r--r-- | services/audioflinger/AudioResamplerSinc.cpp | 2 |
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); |