summaryrefslogtreecommitdiffstats
path: root/services/audioflinger/AudioResampler.cpp
diff options
context:
space:
mode:
authorSathishKumar Mani <smani@codeaurora.org>2012-01-17 10:49:47 -0800
committerIliyan Malchev <malchev@google.com>2012-09-26 18:48:44 -0700
commit41dfd129a181a5b0b62628733cf96e0ce11d64d7 (patch)
tree4614b6808b79cb3e84d5d5b6dbce9275ca89de98 /services/audioflinger/AudioResampler.cpp
parentf818ccfbbfc574d179c4639af6b41c83c368a699 (diff)
downloadframeworks_av-41dfd129a181a5b0b62628733cf96e0ce11d64d7.zip
frameworks_av-41dfd129a181a5b0b62628733cf96e0ce11d64d7.tar.gz
frameworks_av-41dfd129a181a5b0b62628733cf96e0ce11d64d7.tar.bz2
audioflinger: use resample coefficients from audio-resampler library.
-Add a separate quality VERY_HIGH_QUALITY in resampler -Use resample coefficients audio-resampler library for quality VERY_HIGH_QUALITY. -This improves the quality of resampled output. Bug: 7024293 Change-Id: Ia44142413bed5f5963d7eab7846eec877a2415e4 Signed-off-by: Iliyan Malchev <malchev@google.com>
Diffstat (limited to 'services/audioflinger/AudioResampler.cpp')
-rw-r--r--services/audioflinger/AudioResampler.cpp9
1 files changed, 6 insertions, 3 deletions
diff --git a/services/audioflinger/AudioResampler.cpp b/services/audioflinger/AudioResampler.cpp
index fbb54cf..5c1c905 100644
--- a/services/audioflinger/AudioResampler.cpp
+++ b/services/audioflinger/AudioResampler.cpp
@@ -23,8 +23,8 @@
#include <cutils/log.h>
#include <cutils/properties.h>
#include "AudioResampler.h"
-#if 0
#include "AudioResamplerSinc.h"
+#if 0
#include "AudioResamplerCubic.h"
#endif
@@ -106,11 +106,14 @@ AudioResampler* AudioResampler::create(int bitDepth, int inChannelCount,
ALOGV("Create cubic Resampler");
resampler = new AudioResamplerCubic(bitDepth, inChannelCount, sampleRate);
break;
+#endif
case HIGH_QUALITY:
- ALOGV("Create sinc Resampler");
+ ALOGV("Create HIGH_QUALITY sinc Resampler");
resampler = new AudioResamplerSinc(bitDepth, inChannelCount, sampleRate);
+ case VERY_HIGH_QUALITY:
+ ALOGV("Create VERY_HIGH_QUALITY sinc Resampler = %d",quality);
+ resampler = new AudioResamplerSinc(bitDepth, inChannelCount, sampleRate, quality);
break;
-#endif
}
// initialize resampler