2 * Copyright (C) <1999> Erik Walthinsen <omega@cse.ogi.edu>
4 * gstladspa.h: Header for LADSPA plugin
6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Library General Public
8 * License as published by the Free Software Foundation; either
9 * version 2 of the License, or (at your option) any later version.
11 * This library is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 * Library General Public License for more details.
16 * You should have received a copy of the GNU Library General Public
17 * License along with this library; if not, write to the
18 * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
19 * Boston, MA 02111-1307, USA.
23 #ifndef __GST_LADSPA_H__
24 #define __GST_LADSPA_H__
28 #include <gst/bytestream/bytestream.h>
36 #endif /* __cplusplus */
38 typedef struct _ladspa_control_info
42 gfloat lowerbound, upperbound;
44 gboolean lower, upper, samplerate;
45 gboolean toggled, logarithmic, integer, writable;
46 } ladspa_control_info;
48 typedef struct _GstLADSPA GstLADSPA;
49 typedef struct _GstLADSPAClass GstLADSPAClass;
55 LADSPA_Descriptor *descriptor;
56 LADSPA_Handle *handle;
58 GstDParamManager *dpman;
62 GstPad **sinkpads, **srcpads;
66 gint samplerate, buffer_frames;
68 gboolean inplace_broken;
71 struct _GstLADSPAClass
73 GstElementClass parent_class;
75 LADSPA_Descriptor *descriptor;
77 gint numports, numsinkpads, numsrcpads, numcontrols;
79 gint *sinkpad_portnums, *srcpad_portnums, *control_portnums;
81 ladspa_control_info *control_info;
87 #endif /* __cplusplus */
90 #endif /* __GST_LADSPA_H__ */