ext/alsa/gstalsaplugin.c (plugin_init): We are primary audio sinks.

Original commit message from CVS:
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.
This commit is contained in:
Andy Wingo 2005-07-29 15:42:17 +00:00
parent 7679fe45fb
commit 708deec535
3 changed files with 15 additions and 4 deletions

View File

@ -1,3 +1,11 @@
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):

View File

@ -61,10 +61,10 @@ plugin_init (GstPlugin * plugin)
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;

View File

@ -76,9 +76,12 @@ static GstStaticPadTemplate alsasink_sink_factory =
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, "