summaryrefslogtreecommitdiff
path: root/sys/opensles
diff options
context:
space:
mode:
authorJosep Torra <n770galaxy@gmail.com>2012-09-28 14:39:01 +0200
committerSebastian Dröge <sebastian.droege@collabora.co.uk>2012-10-18 14:03:09 +0200
commit1d9f48a33d78c301d98e548ba04bfc526ff86afd (patch)
tree524bae43ab3e69907271ad62f2c80ee48c4fd739 /sys/opensles
parent9cc7e6a74d61f6d5041d8cfe173b737336799a1f (diff)
downloadgstreamer-plugins-bad-1d9f48a33d78c301d98e548ba04bfc526ff86afd.tar.gz
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.
Diffstat (limited to 'sys/opensles')
-rw-r--r--sys/opensles/openslessink.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/opensles/openslessink.c b/sys/opensles/openslessink.c
index 19298ff66..eab787c1d 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,