opensles: drop 48kHz sample rate
authorJosep Torra <n770galaxy@gmail.com>
Fri, 28 Sep 2012 12:39:01 +0000 (14:39 +0200)
committerSebastian Dröge <sebastian.droege@collabora.co.uk>
Thu, 18 Oct 2012 12:03:09 +0000 (14:03 +0200)
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

index 19298ff..eab787c 100644 (file)
@@ -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,