From 1d9f48a33d78c301d98e548ba04bfc526ff86afd Mon Sep 17 00:00:00 2001 From: Josep Torra Date: Fri, 28 Sep 2012 14:39:01 +0200 Subject: [PATCH] opensles: drop 48kHz sample rate OpenSL ES implementation in Android is just a 'facade' API on top of AudioFlinger which will downsample 48kHz into 44.1kHz before delivering the audio to the underlaying hardware. We found that it suffer some sort of underrun when the downsample enters in action so relay on our good resampler to take care of that and fix the clicks issue. And get an extra bonus of a lower latency. --- sys/opensles/openslessink.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/opensles/openslessink.c b/sys/opensles/openslessink.c index 19298ff66e..eab787c1d7 100644 --- a/sys/opensles/openslessink.c +++ b/sys/opensles/openslessink.c @@ -39,7 +39,7 @@ enum /* According to Android's NDK doc the following are the supported rates */ -#define RATES "8000, 11025, 12000, 16000, 22050, 24000, 32000, 44100, 48000" +#define RATES "8000, 11025, 12000, 16000, 22050, 24000, 32000, 44100" static GstStaticPadTemplate sink_factory = GST_STATIC_PAD_TEMPLATE ("sink", GST_PAD_SINK,