diff options
author | Andy Wingo <wingo@pobox.com> | 2005-08-25 09:30:24 +0000 |
---|---|---|
committer | Andy Wingo <wingo@pobox.com> | 2005-08-25 09:30:24 +0000 |
commit | 0f4381d9a2835d65de758306def86f41499ff362 (patch) | |
tree | 71ee391c5d9a5a95d81621315d81b9a75d8ae23f /ext/ladspa/gstladspa.h | |
parent | 776f95cc79eb5947e96910c3f9a537649befac5c (diff) | |
download | gst-plugins-bad-0f4381d9a2835d65de758306def86f41499ff362.tar.gz gst-plugins-bad-0f4381d9a2835d65de758306def86f41499ff362.tar.bz2 gst-plugins-bad-0f4381d9a2835d65de758306def86f41499ff362.zip |
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.h | 33 |
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__ */ |