summaryrefslogtreecommitdiffstats
path: root/ext/apexsink/gstapexplugin.c
diff options
context:
space:
mode:
authorJérémie Bernard <gremimail@gmail.com>2008-08-28 17:01:30 +0000
committerSebastian Dröge <slomo@circular-chaos.org>2008-08-28 17:01:30 +0000
commita72dc6992e5b278d336052751b66acfb7317248d (patch)
treeb985131c266223aff3fed9f336ef5c75a951db4b /ext/apexsink/gstapexplugin.c
parent53025584c3e8491bfec4b8b474fbf39b4155319c (diff)
downloadgst-plugins-bad-a72dc6992e5b278d336052751b66acfb7317248d.tar.gz
gst-plugins-bad-a72dc6992e5b278d336052751b66acfb7317248d.tar.bz2
gst-plugins-bad-a72dc6992e5b278d336052751b66acfb7317248d.zip
Add apexsink for audio output to Apple AirPort Express Wireless devices. Fixes bug #542510.
Original commit message from CVS: Patch by: Jérémie Bernard <gremimail at gmail dot com> * configure.ac: * ext/apexsink/LGPL-3.0.txt: * ext/apexsink/Makefile.am: * ext/apexsink/gstapexplugin.c: (plugin_init): * ext/apexsink/gstapexraop.c: (g_strdel), (gst_apexraop_send), (gst_apexraop_recv), (gst_apexraop_new), (gst_apexraop_free), (gst_apexraop_set_host), (gst_apexraop_get_host), (gst_apexraop_set_port), (gst_apexraop_get_port), (gst_apexraop_set_useragent), (gst_apexraop_get_useragent), (gst_apexraop_connect), (gst_apexraop_get_jacktype), (gst_apexraop_get_jackstatus), (gst_apexraop_close), (gst_apexraop_set_volume), (gst_apexraop_write_bits), (gst_apexraop_write), (gst_apexraop_flush): * ext/apexsink/gstapexraop.h: * ext/apexsink/gstapexsink.c: (gst_apexsink_jackstatus_get_type), (gst_apexsink_jacktype_get_type), (gst_apexsink_interfaces_init), (gst_apexsink_implements_interface_init), (gst_apexsink_mixer_interface_init), (gst_apexsink_interface_supported), (gst_apexsink_mixer_list_tracks), (gst_apexsink_mixer_set_volume), (gst_apexsink_mixer_get_volume), (gst_apexsink_base_init), (gst_apexsink_class_init), (gst_apexsink_init), (gst_apexsink_set_property), (gst_apexsink_get_property), (gst_apexsink_finalise), (gst_apexsink_open), (gst_apexsink_prepare), (gst_apexsink_write), (gst_apexsink_unprepare), (gst_apexsink_delay), (gst_apexsink_reset), (gst_apexsink_close): * ext/apexsink/gstapexsink.h: Add apexsink for audio output to Apple AirPort Express Wireless devices. Fixes bug #542510.
Diffstat (limited to 'ext/apexsink/gstapexplugin.c')
-rw-r--r--ext/apexsink/gstapexplugin.c44
1 files changed, 44 insertions, 0 deletions
diff --git a/ext/apexsink/gstapexplugin.c b/ext/apexsink/gstapexplugin.c
new file mode 100644
index 00000000..014d5a2d
--- /dev/null
+++ b/ext/apexsink/gstapexplugin.c
@@ -0,0 +1,44 @@
+/* GStreamer AirPort Express Plugin
+ *
+ * Copyright (C) 2008 Jérémie Bernard [GRemi] <gremimail@gmail.com>
+ *
+ * gstapexpugin.c
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Library General Public
+ * License as published by the Free Software Foundation; either
+ * version 2 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Library General Public License for more details.
+ *
+ * You should have received a copy of the GNU Library General Public
+ * License along with this library; if not, write to the
+ * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+ * Boston, MA 02111-1307, USA.
+ *
+ */
+
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
+#include <gst/gst.h>
+#include <gstapexsink.h>
+
+static gboolean
+plugin_init (GstPlugin * plugin)
+{
+ return gst_element_register (plugin, GST_APEX_SINK_NAME, GST_RANK_PRIMARY,
+ GST_TYPE_APEX_SINK);
+}
+
+/* plugin export resolution */
+GST_PLUGIN_DEFINE
+ (GST_VERSION_MAJOR,
+ GST_VERSION_MINOR,
+ "apex",
+ "Apple AirPort Express Plugin",
+ plugin_init, VERSION, "LGPL", GST_PACKAGE_NAME, GST_PACKAGE_ORIGIN)