[1600] | 1 | //roarsink.h: |
---|
| 2 | /* GStreamer |
---|
[3814] | 3 | * Copyright (C) <2005> Arwed v. Merkatz <v.merkatz@gmx.net> |
---|
| 4 | * Copyright (C) <2008-2010> Philipp 'ph3-der-loewe' Schafft |
---|
| 5 | * <lion@lion.leolix.org> |
---|
[1600] | 6 | * |
---|
| 7 | * roarsink.h: an RoarAudio audio sink |
---|
| 8 | * |
---|
| 9 | * This library is free software; you can redistribute it and/or |
---|
| 10 | * modify it under the terms of the GNU Library General Public |
---|
| 11 | * License as published by the Free Software Foundation; either |
---|
| 12 | * version 2 of the License, or (at your option) any later version. |
---|
| 13 | * |
---|
| 14 | * This library is distributed in the hope that it will be useful, |
---|
| 15 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
---|
| 16 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
---|
| 17 | * Library General Public License for more details. |
---|
| 18 | * |
---|
| 19 | * You should have received a copy of the GNU Library General Public |
---|
| 20 | * License along with this library; if not, write to the |
---|
| 21 | * Free Software Foundation, Inc., 59 Temple Place - Suite 330, |
---|
| 22 | * Boston, MA 02111-1307, USA. |
---|
| 23 | */ |
---|
| 24 | |
---|
| 25 | |
---|
| 26 | #ifndef __GST_ROARSINK_H__ |
---|
| 27 | #define __GST_ROARSINK_H__ |
---|
| 28 | |
---|
| 29 | #include <gst/gst.h> |
---|
| 30 | #include <gst/audio/gstaudiosink.h> |
---|
| 31 | #include <roaraudio.h> |
---|
| 32 | |
---|
| 33 | #define VERSION "0.0.1" |
---|
| 34 | #define PACKAGE "gst-plugins" |
---|
| 35 | #define GST_PACKAGE_ORIGIN "Unknown package origin" |
---|
| 36 | #define GST_PACKAGE_NAME "GStreamer Plug-ins source release" |
---|
| 37 | |
---|
| 38 | G_BEGIN_DECLS |
---|
| 39 | |
---|
| 40 | #define GST_TYPE_ROARSINK \ |
---|
| 41 | (gst_roarsink_get_type()) |
---|
| 42 | #define GST_ROARSINK(obj) \ |
---|
| 43 | (G_TYPE_CHECK_INSTANCE_CAST((obj),GST_TYPE_ROARSINK,GstRoarSink)) |
---|
| 44 | #define GST_ROARSINK_CLASS(klass) \ |
---|
| 45 | (G_TYPE_CHECK_CLASS_CAST((klass),GST_TYPE_ROARSINK,GstRoarSinkClass)) |
---|
| 46 | #define GST_IS_ROARSINK(obj) \ |
---|
| 47 | (G_TYPE_CHECK_INSTANCE_TYPE((obj),GST_TYPE_ROARSINK)) |
---|
| 48 | #define GST_IS_ROARSINK_CLASS(klass) \ |
---|
| 49 | (G_TYPE_CHECK_CLASS_TYPE((klass),GST_TYPE_ROARSINK)) |
---|
| 50 | |
---|
| 51 | typedef struct _GstRoarSink GstRoarSink; |
---|
| 52 | typedef struct _GstRoarSinkClass GstRoarSinkClass; |
---|
| 53 | |
---|
| 54 | struct _GstRoarSink { |
---|
| 55 | GstAudioSink sink; |
---|
| 56 | |
---|
| 57 | struct roar_connection con; |
---|
| 58 | int fd; |
---|
| 59 | gchar *host; |
---|
| 60 | |
---|
| 61 | guint rate; |
---|
| 62 | GstCaps *cur_caps; |
---|
| 63 | }; |
---|
| 64 | |
---|
| 65 | struct _GstRoarSinkClass { |
---|
| 66 | GstAudioSinkClass parent_class; |
---|
| 67 | }; |
---|
| 68 | |
---|
| 69 | GType gst_roarsink_get_type(void); |
---|
| 70 | gboolean gst_roarsink_factory_init (GstPlugin *plugin); |
---|
| 71 | |
---|
| 72 | |
---|
| 73 | G_END_DECLS |
---|
| 74 | |
---|
[2068] | 75 | #endif /* __GST_ROARSINK_H__ */ |
---|