Commit 177dd68d authored by Sebastian Dröge's avatar Sebastian Dröge

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

parent dc049d1f
......@@ -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;
......
......@@ -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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment