2004-01-18 20:17:05 +00:00
|
|
|
/* GStreamer trm plugin
|
|
|
|
* Copyright (C) 2004 Jeremy Simon <jsimon13@yahoo.fr>
|
|
|
|
*
|
|
|
|
* 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
|
2012-11-03 20:38:00 +00:00
|
|
|
* Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
|
|
|
|
* Boston, MA 02110-1301, USA.
|
2004-01-18 20:17:05 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
|
2006-05-03 11:27:42 +00:00
|
|
|
#ifndef __GST_TRM_H__
|
|
|
|
#define __GST_TRM_H__
|
2004-01-18 20:17:05 +00:00
|
|
|
|
|
|
|
#include <gst/gst.h>
|
2006-05-03 11:27:42 +00:00
|
|
|
#include <gst/gsttaglist.h>
|
|
|
|
#include <gst/tag/tag.h>
|
2004-01-18 20:17:05 +00:00
|
|
|
|
|
|
|
#include <musicbrainz/mb_c.h>
|
|
|
|
|
2006-05-03 11:27:42 +00:00
|
|
|
G_BEGIN_DECLS
|
2004-01-18 20:17:05 +00:00
|
|
|
|
2006-05-03 11:27:42 +00:00
|
|
|
#define GST_TYPE_TRM (gst_trm_get_type())
|
|
|
|
#define GST_TRM(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj),GST_TYPE_TRM,GstTRM))
|
|
|
|
#define GST_TRM_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST((klass),GST_TYPE_TRM,GstTRMClass))
|
|
|
|
#define GST_IS_TRM(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj),GST_TYPE_TRM))
|
|
|
|
#define GST_IS_TRM_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE((klass),GST_TYPE_TRM))
|
2004-01-18 20:17:05 +00:00
|
|
|
|
2006-05-03 11:27:42 +00:00
|
|
|
typedef struct _GstTRM GstTRM;
|
|
|
|
typedef struct _GstTRMClass GstTRMClass;
|
2004-01-18 20:17:05 +00:00
|
|
|
|
2006-05-03 13:20:41 +00:00
|
|
|
/**
|
|
|
|
* GstTRM
|
|
|
|
*
|
|
|
|
* GStreamer TRM element. This structure is opaque (private).
|
|
|
|
*
|
|
|
|
**/
|
|
|
|
|
2006-05-03 11:27:42 +00:00
|
|
|
struct _GstTRM {
|
2004-03-15 16:32:54 +00:00
|
|
|
GstElement element;
|
2004-01-18 20:17:05 +00:00
|
|
|
|
2006-05-03 13:20:41 +00:00
|
|
|
/*< private >*/
|
2006-05-03 11:27:42 +00:00
|
|
|
GstPad *sinkpad;
|
|
|
|
GstPad *srcpad;
|
|
|
|
|
|
|
|
trm_t trm;
|
2004-01-18 20:17:05 +00:00
|
|
|
|
2006-05-03 11:27:42 +00:00
|
|
|
gchar *proxy_address;
|
|
|
|
guint proxy_port;
|
2004-01-18 20:17:05 +00:00
|
|
|
|
2006-05-03 11:27:42 +00:00
|
|
|
gint depth;
|
|
|
|
gint rate;
|
|
|
|
gint channels;
|
2004-12-16 12:03:06 +00:00
|
|
|
|
2006-05-03 11:27:42 +00:00
|
|
|
gboolean data_available;
|
|
|
|
gboolean signature_available;
|
2004-03-15 16:32:54 +00:00
|
|
|
};
|
2004-01-18 20:17:05 +00:00
|
|
|
|
2006-05-03 11:27:42 +00:00
|
|
|
struct _GstTRMClass {
|
2004-03-15 16:32:54 +00:00
|
|
|
GstElementClass parent_class;
|
|
|
|
};
|
2004-01-18 20:17:05 +00:00
|
|
|
|
2007-07-03 07:30:47 +00:00
|
|
|
GType gst_trm_get_type(void);
|
2004-01-18 20:17:05 +00:00
|
|
|
|
2006-05-03 11:27:42 +00:00
|
|
|
G_END_DECLS
|
2004-01-18 20:17:05 +00:00
|
|
|
|
2006-05-03 11:27:42 +00:00
|
|
|
#endif /* __GST_TRM_H__ */
|