2002-03-20 21:45:03 +00:00
|
|
|
/* GStreamer
|
2005-05-10 20:10:43 +00:00
|
|
|
* Copyright (C) <2005> Arwed v. Merkatz <v.merkatz@gmx.net>
|
|
|
|
*
|
|
|
|
* esdsink.h: an EsounD audio sink
|
2001-12-20 23:13:50 +00:00
|
|
|
*
|
|
|
|
* 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.
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
|
|
#ifndef __GST_ESDSINK_H__
|
|
|
|
#define __GST_ESDSINK_H__
|
|
|
|
|
|
|
|
#include <gst/gst.h>
|
2005-05-10 20:10:43 +00:00
|
|
|
#include <gst/audio/gstaudiosink.h>
|
2001-12-20 23:13:50 +00:00
|
|
|
|
2003-04-06 13:04:20 +00:00
|
|
|
G_BEGIN_DECLS
|
2004-03-15 16:32:54 +00:00
|
|
|
|
2001-12-20 23:13:50 +00:00
|
|
|
#define GST_TYPE_ESDSINK \
|
|
|
|
(gst_esdsink_get_type())
|
|
|
|
#define GST_ESDSINK(obj) \
|
2005-05-10 20:10:43 +00:00
|
|
|
(G_TYPE_CHECK_INSTANCE_CAST((obj),GST_TYPE_ESDSINK,GstEsdSink))
|
2001-12-20 23:13:50 +00:00
|
|
|
#define GST_ESDSINK_CLASS(klass) \
|
2005-05-10 20:10:43 +00:00
|
|
|
(G_TYPE_CHECK_CLASS_CAST((klass),GST_TYPE_ESDSINK,GstEsdSinkClass))
|
2001-12-20 23:13:50 +00:00
|
|
|
#define GST_IS_ESDSINK(obj) \
|
|
|
|
(G_TYPE_CHECK_INSTANCE_TYPE((obj),GST_TYPE_ESDSINK))
|
2006-06-01 21:07:26 +00:00
|
|
|
#define GST_IS_ESDSINK_CLASS(klass) \
|
2001-12-20 23:13:50 +00:00
|
|
|
(G_TYPE_CHECK_CLASS_TYPE((klass),GST_TYPE_ESDSINK))
|
2004-03-15 16:32:54 +00:00
|
|
|
|
2005-05-10 20:10:43 +00:00
|
|
|
typedef struct _GstEsdSink GstEsdSink;
|
|
|
|
typedef struct _GstEsdSinkClass GstEsdSinkClass;
|
2003-04-06 13:04:20 +00:00
|
|
|
|
2005-05-10 20:10:43 +00:00
|
|
|
struct _GstEsdSink {
|
2005-12-06 19:44:58 +00:00
|
|
|
GstAudioSink sink;
|
2003-07-04 07:32:19 +00:00
|
|
|
|
2006-03-23 20:12:47 +00:00
|
|
|
int fd;
|
|
|
|
int ctrl_fd;
|
|
|
|
gchar *host;
|
|
|
|
|
|
|
|
guint rate;
|
2006-05-10 11:17:31 +00:00
|
|
|
GstCaps *cur_caps;
|
2001-12-20 23:13:50 +00:00
|
|
|
};
|
|
|
|
|
2005-05-10 20:10:43 +00:00
|
|
|
struct _GstEsdSinkClass {
|
|
|
|
GstAudioSinkClass parent_class;
|
2001-12-20 23:13:50 +00:00
|
|
|
};
|
|
|
|
|
2006-11-24 08:58:53 +00:00
|
|
|
GType gst_esdsink_get_type (void);
|
2001-12-20 23:13:50 +00:00
|
|
|
|
2003-04-06 13:04:20 +00:00
|
|
|
G_END_DECLS
|
2004-03-15 16:32:54 +00:00
|
|
|
|
2001-12-20 23:13:50 +00:00
|
|
|
#endif /* __GST_ESDSINK_H__ */
|