mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-30 13:41:48 +00:00
osxaudio: fix layout for osxaudiosrc
This commit is contained in:
parent
b217b6fdfb
commit
d5d53ec611
1 changed files with 9 additions and 5 deletions
|
@ -79,14 +79,18 @@ enum
|
||||||
ARG_DEVICE
|
ARG_DEVICE
|
||||||
};
|
};
|
||||||
|
|
||||||
|
#if (G_BYTE_ORDER == G_LITTLE_ENDIAN)
|
||||||
|
# define FORMATS "{ S32LE }"
|
||||||
|
#else
|
||||||
|
# define FORMATS "{ S32BE }"
|
||||||
|
#endif
|
||||||
|
|
||||||
static GstStaticPadTemplate src_factory = GST_STATIC_PAD_TEMPLATE ("src",
|
static GstStaticPadTemplate src_factory = GST_STATIC_PAD_TEMPLATE ("src",
|
||||||
GST_PAD_SRC,
|
GST_PAD_SRC,
|
||||||
GST_PAD_ALWAYS,
|
GST_PAD_ALWAYS,
|
||||||
GST_STATIC_CAPS ("audio/x-raw-float, "
|
GST_STATIC_CAPS ("audio/x-raw, "
|
||||||
"endianness = (int) {" G_STRINGIFY (G_BYTE_ORDER) " }, "
|
"format = (string) " FORMATS ", "
|
||||||
"signed = (boolean) { TRUE }, "
|
"layout = (string) interleaved, "
|
||||||
"width = (int) 32, "
|
|
||||||
"depth = (int) 32, "
|
|
||||||
"rate = (int) [1, MAX], " "channels = (int) [1, MAX]")
|
"rate = (int) [1, MAX], " "channels = (int) [1, MAX]")
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue