diff options
author | Mathias Agopian <mathias@google.com> | 2012-10-21 03:04:05 -0700 |
---|---|---|
committer | Mathias Agopian <mathias@google.com> | 2012-10-21 03:04:05 -0700 |
commit | 61ea117b03b53382b5ecbc33004c7d37ea70ea8b (patch) | |
tree | 5ad35048b02f3653408890bf0f279c05acf41426 /services/audioflinger | |
parent | c3ed4a1c3ea71681c71de48c206a899e702864bd (diff) | |
download | frameworks_av-61ea117b03b53382b5ecbc33004c7d37ea70ea8b.zip frameworks_av-61ea117b03b53382b5ecbc33004c7d37ea70ea8b.tar.gz frameworks_av-61ea117b03b53382b5ecbc33004c7d37ea70ea8b.tar.bz2 |
Fix a typo that caused the high quality resampler to produce garbage
the problem is that if libaudio_resampler is present, it is those
coefficients that will always be selected, but the correct
meta-data.
Bug: 7385994
Change-Id: Ieebeb37b4dfb62a1a051bc29fae2ce056dbc6621
Diffstat (limited to 'services/audioflinger')
-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); |