summaryrefslogtreecommitdiffstats
path: root/services/audioflinger/AudioMixer.cpp
diff options
context:
space:
mode:
authorAndy Hung <hunga@google.com>2014-01-30 14:32:31 -0800
committerAndy Hung <hunga@google.com>2014-01-30 16:19:21 -0800
commit9e0308c03d4e76d3146cbb6e30aeb3ac03f05cf5 (patch)
treef64a6d90e2e6d2e45fa83a72422d08b3751c3914 /services/audioflinger/AudioMixer.cpp
parente983e0a0017fce81dc3d9bea36f5abb7b7bce40b (diff)
downloadframeworks_av-9e0308c03d4e76d3146cbb6e30aeb3ac03f05cf5.zip
frameworks_av-9e0308c03d4e76d3146cbb6e30aeb3ac03f05cf5.tar.gz
frameworks_av-9e0308c03d4e76d3146cbb6e30aeb3ac03f05cf5.tar.bz2
Enable new dynamic audio resampler as default
The default may still be overridden by af.resampler.quality in the local or build properties file. For the build properties check the relevant device.mk files. In the absence of being overridden, the 44.1 to 48kHz and 48 to 44.1kHz conversion will use the DYN_MED_QUALITY resamplers and other conversion will use the DYN_LOW_QUALITY resamplers. Change-Id: Icf9a4af5422cddc445e1904eef93984b0abe6a44 Signed-off-by: Andy Hung <hunga@google.com>
Diffstat (limited to 'services/audioflinger/AudioMixer.cpp')
-rw-r--r--services/audioflinger/AudioMixer.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/services/audioflinger/AudioMixer.cpp b/services/audioflinger/AudioMixer.cpp
index 59d1a59..f2af9b2 100644
--- a/services/audioflinger/AudioMixer.cpp
+++ b/services/audioflinger/AudioMixer.cpp
@@ -536,7 +536,7 @@ bool AudioMixer::track_t::setResampler(uint32_t value, uint32_t devSampleRate)
// Should have a way to distinguish tracks with static ratios vs. dynamic ratios.
if (!((value == 44100 && devSampleRate == 48000) ||
(value == 48000 && devSampleRate == 44100))) {
- quality = AudioResampler::LOW_QUALITY;
+ quality = AudioResampler::DYN_LOW_QUALITY;
} else {
quality = AudioResampler::DEFAULT_QUALITY;
}