osxaudio: fix layout for osxaudiosrc

This commit is contained in:
ted-n 2013-04-02 22:28:09 +09:00 committed by Sebastian Dröge
parent b217b6fdfb
commit d5d53ec611

View file

@ -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]")
); );