+2005-07-29 Andy Wingo <wingo@pobox.com>
+
+ * ext/alsa/gstalsaplugin.c (plugin_init): We are primary audio
+ sinks.
+
+ * ext/alsa/gstalsasink.c (alsasink_sink_factory): Advertise our
+ support of both endiannesses.
+
2005-07-28 Tim-Philipp Müller <tim at centricular dot net>
* ext/vorbis/vorbisdec.c: (vorbis_dec_src_query):
GST_TYPE_ALSA_MIXER))
return FALSE;
*/
- if (!gst_element_register (plugin, "alsasrc", GST_RANK_NONE,
+ if (!gst_element_register (plugin, "alsasrc", GST_RANK_PRIMARY,
GST_TYPE_ALSA_SRC))
return FALSE;
- if (!gst_element_register (plugin, "alsasink", GST_RANK_NONE,
+ if (!gst_element_register (plugin, "alsasink", GST_RANK_PRIMARY,
GST_TYPE_ALSA_SINK))
return FALSE;
GST_PAD_SINK,
GST_PAD_ALWAYS,
GST_STATIC_CAPS ("audio/x-raw-int, "
- //"endianness = (int) { LITTLE_ENDIAN, BIG_ENDIAN }, "
+#if (G_BYTE_ORDER == G_LITTLE_ENDIAN)
+ "endianness = (int) { LITTLE_ENDIAN, BIG_ENDIAN }, "
+#else
+ "endianness = (int) { BIG_ENDIAN, LITTLE_ENDIAN }, "
+#endif
//"signed = (boolean) { TRUE, FALSE }, "
- "endianness = (int) LITTLE_ENDIAN, "
"signed = (boolean) TRUE, "
"width = (int) 16, "
"depth = (int) 16, "