summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthew Read <matthew@ekioh.com>2020-02-29 12:49:06 +0000
committerTim-Philipp Müller <tim@centricular.com>2020-06-07 00:55:48 +0100
commit0889213e082e2fa3b740de827f8ade6abcd69585 (patch)
tree6addf56c233f4e739d4611cd457ea7d4ba936f69
parentfe021e5c738dc946b4fb2531edcbeee923884975 (diff)
downloadgstreamer-plugins-bad-0889213e082e2fa3b740de827f8ade6abcd69585.tar.gz
openslessink: Allow openslessink to handle 48kHz streams.
The most common audio sample rate in AV streams is 48kHz, and the most common device output sample rate is 48kHz. This allows handing of 48kHz input streams without resampling. Remove comments about avoiding the use of 48kHz.
-rw-r--r--sys/opensles/openslessink.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/sys/opensles/openslessink.c b/sys/opensles/openslessink.c
index c4c049208..416d0e981 100644
--- a/sys/opensles/openslessink.c
+++ b/sys/opensles/openslessink.c
@@ -57,10 +57,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 Hz is also claimed to be supported but the AudioFlinger downsampling
- * doesn't seems to work properly so we relay GStreamer audioresample element
- * to cope with this samplerate. */
+#define RATES "8000, 11025, 12000, 16000, 22050, 24000, 32000, 44100, 48000"
static GstStaticPadTemplate sink_factory = GST_STATIC_PAD_TEMPLATE ("sink",
GST_PAD_SINK,