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>
diff --git a/services/audioflinger/AudioResampler.h b/services/audioflinger/AudioResampler.h
index dc696d8..71cdfda 100644
--- a/services/audioflinger/AudioResampler.h
+++ b/services/audioflinger/AudioResampler.h
@@ -38,7 +38,8 @@
DEFAULT=0,
LOW_QUALITY=1,
MED_QUALITY=2,
- HIGH_QUALITY=3
+ HIGH_QUALITY=3,
+ VERY_HIGH_QUALITY=255
};
static AudioResampler* create(int bitDepth, int inChannelCount,