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:
Arun Raghavan 2015-04-08 10:52:17 +05:30 committed by Arun Raghavan
parent 5352ba19ac
commit b40adec9c1
2 changed files with 4 additions and 2 deletions

View file

@ -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 \

View file

@ -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* */