From 0f4381d9a2835d65de758306def86f41499ff362 Mon Sep 17 00:00:00 2001 From: Andy Wingo Date: Thu, 25 Aug 2005 09:30:24 +0000 Subject: ext/ladspa/gstladspa.*: Halfway-ported. Doesn't compile yet. Original commit message from CVS: 2005-08-25 Andy Wingo * 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. --- ext/ladspa/gstladspa.h | 33 ++++++++++----------------------- 1 file changed, 10 insertions(+), 23 deletions(-) (limited to 'ext/ladspa/gstladspa.h') 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 + #include -#include -#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__ */ -- cgit v1.2.1