summaryrefslogtreecommitdiffstats
path: root/ext/esd/esdmon.c
diff options
context:
space:
mode:
authorDavid Schleef <ds@schleef.org>2003-07-15 07:52:10 +0000
committerDavid Schleef <ds@schleef.org>2003-07-15 07:52:10 +0000
commit803a18a70a622322574de4ba53c81a952f0528ab (patch)
tree8256742a79ce98201bf1f959aed038ff4238c5e4 /ext/esd/esdmon.c
parent0b1a3a357975e8bbe2281902e5c6f01000aa29dc (diff)
Merge esdmon and esdsink elements into one plugin
Original commit message from CVS: Merge esdmon and esdsink elements into one plugin
Diffstat (limited to 'ext/esd/esdmon.c')
-rw-r--r--ext/esd/esdmon.c56
1 files changed, 3 insertions, 53 deletions
diff --git a/ext/esd/esdmon.c b/ext/esd/esdmon.c
index 851ffd8c..ae8d4fd4 100644
--- a/ext/esd/esdmon.c
+++ b/ext/esd/esdmon.c
@@ -23,53 +23,10 @@
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
-#include <gst/gst.h>
+#include "esdmon.h"
#include <esd.h>
#include <unistd.h>
-#define GST_TYPE_ESDMON \
- (gst_esdmon_get_type())
-#define GST_ESDMON(obj) \
- (G_TYPE_CHECK_INSTANCE_CAST((obj),GST_TYPE_ESDMON,GstEsdmon))
-#define GST_ESDMON_CLASS(klass) \
- (G_TYPE_CHECK_CLASS_CAST((klass),GST_TYPE_ESDMON,GstEsdmon))
-#define GST_IS_ESDMON(obj) \
- (G_TYPE_CHECK_INSTANCE_TYPE((obj),GST_TYPE_ESDMON))
-#define GST_IS_ESDMON_CLASS(obj) \
- (G_TYPE_CHECK_CLASS_TYPE((klass),GST_TYPE_ESDMON))
-
-typedef enum {
- GST_ESDMON_OPEN = GST_ELEMENT_FLAG_LAST,
- GST_ESDMON_FLAG_LAST = GST_ELEMENT_FLAG_LAST+2,
-} GstEsdSrcFlags;
-
-typedef struct _GstEsdmon GstEsdmon;
-typedef struct _GstEsdmonClass GstEsdmonClass;
-
-struct _GstEsdmon {
- GstElement element;
-
- GstPad *srcpad;
-
- gchar* host;
-
- int fd;
-
- gint depth;
- gint channels;
- gint frequency;
-
- guint64 basetime;
- guint64 samples_since_basetime;
- guint64 curoffset;
- guint64 bytes_per_read;
-};
-
-struct _GstEsdmonClass {
- GstElementClass parent_class;
-};
-
-GType gst_esdmon_get_type(void);
/* elementfactory information */
static GstElementDetails esdmon_details = {
@@ -405,8 +362,8 @@ gst_esdmon_get_property (GObject *object, guint prop_id, GValue *value, GParamSp
}
}
-static gboolean
-plugin_init (GModule *module, GstPlugin *plugin)
+gboolean
+gst_esdmon_factory_init (GstPlugin *plugin)
{
GstElementFactory *factory;
@@ -421,13 +378,6 @@ plugin_init (GModule *module, GstPlugin *plugin)
return TRUE;
}
-GstPluginDesc plugin_desc = {
- GST_VERSION_MAJOR,
- GST_VERSION_MINOR,
- "esdmon",
- plugin_init
-};
-
static gboolean
gst_esdmon_open_audio (GstEsdmon *src)
{