openslessink: Allow openslessink to handle 48kHz streams.
authorMatthew Read <matthew@ekioh.com>
Sat, 29 Feb 2020 12:49:06 +0000 (12:49 +0000)
committerGStreamer Merge Bot <gitlab-merge-bot@gstreamer-foundation.org>
Tue, 3 Mar 2020 08:59:01 +0000 (08:59 +0000)
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.

sys/opensles/openslessink.c

index c4c0492..416d0e9 100644 (file)
@@ -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,