summaryrefslogtreecommitdiffstats
path: root/ext/ladspa/gstladspa.h
diff options
context:
space:
mode:
authorAndy Wingo <wingo@pobox.com>2005-08-25 09:30:24 +0000
committerAndy Wingo <wingo@pobox.com>2005-08-25 09:30:24 +0000
commit0582ab12916859fdc3815010e68aafb131c9570c (patch)
tree2284e326926c95feed4e5b849acf1f4b3485f604 /ext/ladspa/gstladspa.h
parent38d8867a0f70785789dbf469d8d4129a45517a95 (diff)
ext/ladspa/gstladspa.*: Halfway-ported. Doesn't compile yet.
Original commit message from CVS: 2005-08-25 Andy Wingo <wingo@pobox.com> * ext/ladspa/gstladspa.h: * ext/ladspa/gstladspa.c: Halfway-ported. Doesn't compile yet. * ext/ladspa/gstsignalprocessor.h: * ext/ladspa/gstsignalprocessor.c: New files, the start of a base class for DSP elements. * configure.ac: Sort the external libs checks, add a ladspa check, output the ladspa makefile.
Diffstat (limited to 'ext/ladspa/gstladspa.h')
-rw-r--r--ext/ladspa/gstladspa.h33
1 files changed, 10 insertions, 23 deletions
diff --git a/ext/ladspa/gstladspa.h b/ext/ladspa/gstladspa.h
index 81f06729..cb6f1afa 100644
--- a/ext/ladspa/gstladspa.h
+++ b/ext/ladspa/gstladspa.h
@@ -24,15 +24,15 @@
#define __GST_LADSPA_H__
+#include <ladspa.h>
+
#include <gst/gst.h>
-#include <gst/bytestream/bytestream.h>
-#include "ladspa.h"
+#include "gstsignalprocessor.h"
+
+G_BEGIN_DECLS
-#ifdef __cplusplus
-extern "C" {
-#endif /* __cplusplus */
typedef struct _ladspa_control_info {
gchar *name;
@@ -43,37 +43,26 @@ typedef struct _ladspa_control_info {
gboolean toggled, logarithmic, integer, writable;
} ladspa_control_info;
+
typedef struct _GstLADSPA GstLADSPA;
typedef struct _GstLADSPAClass GstLADSPAClass;
+
struct _GstLADSPA {
- GstElement element;
+ GstSignalProcessor parent;
LADSPA_Descriptor *descriptor;
LADSPA_Handle *handle;
- gfloat *controls;
-
- GstPad **sinkpads,
- **srcpads;
-
gboolean activated;
-
- gint samplerate, buffer_frames;
- gint64 timestamp;
gboolean inplace_broken;
};
struct _GstLADSPAClass {
- GstElementClass parent_class;
+ GstSignalProcessorClass parent_class;
LADSPA_Descriptor *descriptor;
- gint numports,
- numsinkpads,
- numsrcpads,
- numcontrols;
-
gint *sinkpad_portnums,
*srcpad_portnums,
*control_portnums;
@@ -82,9 +71,7 @@ struct _GstLADSPAClass {
};
-#ifdef __cplusplus
-}
-#endif /* __cplusplus */
+G_END_DECLS
#endif /* __GST_LADSPA_H__ */