mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-06-04 22:48:54 +00:00
oss: Port to the new multichannel caps and the raw audio caps interleaved field
This commit is contained in:
parent
dc049d1f1f
commit
177dd68d06
2 changed files with 17 additions and 3 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue