diff options
author | Mathias Agopian <mathias@google.com> | 2012-10-22 11:54:12 -0700 |
---|---|---|
committer | Android Git Automerger <android-git-automerger@android.com> | 2012-10-22 11:54:12 -0700 |
commit | 8516ae9f56fd6d2ae6c6b5534609ae2ae3725d10 (patch) | |
tree | 5137d1783700e2d78e4c0f22a26bb8cb8e5b5af1 /services | |
parent | 10ef71a886b3d0ad0b3935389dad6717370deda1 (diff) | |
parent | 02346f4c960d9eefb12dccb93fdb07a67c7f34f0 (diff) | |
download | frameworks_av-8516ae9f56fd6d2ae6c6b5534609ae2ae3725d10.zip frameworks_av-8516ae9f56fd6d2ae6c6b5534609ae2ae3725d10.tar.gz frameworks_av-8516ae9f56fd6d2ae6c6b5534609ae2ae3725d10.tar.bz2 |
am 7f4d5714: am e384d75b: Merge "Fix a typo that caused the high quality resampler to produce garbage" into jb-mr1-dev
* commit '7f4d5714f3f0ab4efaf2d0929a9f984467ef95c7':
Fix a typo that caused the high quality resampler to produce garbage
Diffstat (limited to 'services')
-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 90651f1..9e8447a 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); |