oss: Port to the new multichannel caps and the raw audio caps interleaved field

This commit is contained in:
Sebastian Dröge 2012-01-04 10:54:46 +01:00
parent dc049d1f1f
commit 177dd68d06
2 changed files with 17 additions and 3 deletions

View file

@ -113,12 +113,19 @@ enum
#define FORMATS "{" GST_AUDIO_NE(S16)","GST_AUDIO_NE(U16)", S8, U8 }"
static GstStaticPadTemplate osssink_sink_factory =
GST_STATIC_PAD_TEMPLATE ("sink",
GST_STATIC_PAD_TEMPLATE ("sink",
GST_PAD_SINK,
GST_PAD_ALWAYS,
GST_STATIC_CAPS ("audio/x-raw, "
"format = (string) " FORMATS ", "
"rate = (int) [ 1, MAX ], " "channels = (int) [ 1, 2 ]")
"layout = (string) interleaved, "
"rate = (int) [ 1, MAX ], "
"channels = (int) 1; "
"audio/x-raw, "
"format = (string) " FORMATS ", "
"layout = (string) interleaved, "
"rate = (int) [ 1, MAX ], "
"channels = (int) 2, " "channel-mask = (bitmask) 0x3")
);
static GstElementClass *parent_class = NULL;

View file

@ -108,7 +108,14 @@ static GstStaticPadTemplate osssrc_src_factory = GST_STATIC_PAD_TEMPLATE ("src",
GST_PAD_ALWAYS,
GST_STATIC_CAPS ("audio/x-raw, "
"format = (string) " FORMATS ", "
"rate = (int) [ 1, MAX ], " "channels = (int) [ 1, 2 ]")
"layout = (string) interleaved, "
"rate = (int) [ 1, MAX ], "
"channels = (int) 1; "
"audio/x-raw, "
"format = (string) " FORMATS ", "
"layout = (string) interleaved, "
"rate = (int) [ 1, MAX ], "
"channels = (int) 2, " "channel-mask = (bitmask) 0x3")
);
static void