summaryrefslogtreecommitdiffstats
path: root/services/audioflinger/AudioResampler.cpp
diff options
context:
space:
mode:
authorGlenn Kasten <gkasten@google.com>2012-02-02 14:01:58 -0800
committerGlenn Kasten <gkasten@google.com>2012-02-09 18:14:44 -0800
commitcdf2158f3b9498d6cd0eb228d8bee16e32399e16 (patch)
tree21af355df3a1f1d8d559b419fe8daf37c46dadbc /services/audioflinger/AudioResampler.cpp
parent7ae4a2c130ec2cb5dec69d095b810698acc543b3 (diff)
downloadframeworks_av-cdf2158f3b9498d6cd0eb228d8bee16e32399e16.zip
frameworks_av-cdf2158f3b9498d6cd0eb228d8bee16e32399e16.tar.gz
frameworks_av-cdf2158f3b9498d6cd0eb228d8bee16e32399e16.tar.bz2
Disable HQ resamplers for now until qualified
This saves about 6500 bytes. Change-Id: I87102fe561c95c19c9e615dea3de914f96639257
Diffstat (limited to 'services/audioflinger/AudioResampler.cpp')
-rw-r--r--services/audioflinger/AudioResampler.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/services/audioflinger/AudioResampler.cpp b/services/audioflinger/AudioResampler.cpp
index 6e17a4a..0a52939 100644
--- a/services/audioflinger/AudioResampler.cpp
+++ b/services/audioflinger/AudioResampler.cpp
@@ -23,8 +23,10 @@
#include <cutils/log.h>
#include <cutils/properties.h>
#include "AudioResampler.h"
+#if 0
#include "AudioResamplerSinc.h"
#include "AudioResamplerCubic.h"
+#endif
#ifdef __arm__
#include <machine/cpu-features.h>
@@ -99,6 +101,7 @@ AudioResampler* AudioResampler::create(int bitDepth, int inChannelCount,
ALOGV("Create linear Resampler");
resampler = new AudioResamplerOrder1(bitDepth, inChannelCount, sampleRate);
break;
+#if 0
case MED_QUALITY:
ALOGV("Create cubic Resampler");
resampler = new AudioResamplerCubic(bitDepth, inChannelCount, sampleRate);
@@ -107,6 +110,7 @@ AudioResampler* AudioResampler::create(int bitDepth, int inChannelCount,
ALOGV("Create sinc Resampler");
resampler = new AudioResamplerSinc(bitDepth, inChannelCount, sampleRate);
break;
+#endif
}
// initialize resampler