mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-26 19:51:11 +00:00
opensles: Explicitly specify layout=interleaved in caps
This is fine to hard-code. Section 9.1.8 of the OpenSL ES 1.1 specification, it is expected that multi-channel audio is always interleaved.
This commit is contained in:
parent
5352ba19ac
commit
b40adec9c1
2 changed files with 4 additions and 2 deletions
|
@ -65,7 +65,8 @@ static GstStaticPadTemplate sink_factory = GST_STATIC_PAD_TEMPLATE ("sink",
|
|||
GST_PAD_ALWAYS,
|
||||
GST_STATIC_CAPS ("audio/x-raw, "
|
||||
"format = (string) { " GST_AUDIO_NE (S16) ", " GST_AUDIO_NE (U8) "}, "
|
||||
"rate = (int) { " RATES "}, " "channels = (int) [1, 2]")
|
||||
"rate = (int) { " RATES "}, " "channels = (int) [1, 2], "
|
||||
"layout = (string) interleaved")
|
||||
);
|
||||
|
||||
#define _do_init \
|
||||
|
|
|
@ -48,7 +48,8 @@ static GstStaticPadTemplate src_factory = GST_STATIC_PAD_TEMPLATE ("src",
|
|||
GST_STATIC_CAPS ("audio/x-raw, "
|
||||
"format = (string) " GST_AUDIO_NE (S16) ", "
|
||||
"rate = (int) 16000, "
|
||||
"channels = (int) 1")
|
||||
"channels = (int) 1, "
|
||||
"layout = (string) interleaved")
|
||||
);
|
||||
/* *INDENT-ON* */
|
||||
|
||||
|
|
Loading…
Reference in a new issue