gst-indent
[platform/upstream/gst-plugins-good.git] / ext / ladspa / gstladspa.h
1 /* GStreamer
2  * Copyright (C) <1999> Erik Walthinsen <omega@cse.ogi.edu>
3  *
4  * gstladspa.h: Header for LADSPA plugin
5  *
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.
10  *
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.
15  *
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.
20  */
21
22
23 #ifndef __GST_LADSPA_H__
24 #define __GST_LADSPA_H__
25
26
27 #include <gst/gst.h>
28 #include <gst/bytestream/bytestream.h>
29
30 #include "ladspa.h"
31
32
33 #ifdef __cplusplus
34 extern "C"
35 {
36 #endif                          /* __cplusplus */
37
38   typedef struct _ladspa_control_info
39   {
40     gchar *name;
41     gchar *param_name;
42     gfloat lowerbound, upperbound;
43     gfloat def;
44     gboolean lower, upper, samplerate;
45     gboolean toggled, logarithmic, integer, writable;
46   } ladspa_control_info;
47
48   typedef struct _GstLADSPA GstLADSPA;
49   typedef struct _GstLADSPAClass GstLADSPAClass;
50
51   struct _GstLADSPA
52   {
53     GstElement element;
54
55     LADSPA_Descriptor *descriptor;
56     LADSPA_Handle *handle;
57
58     GstDParamManager *dpman;
59
60     gfloat *controls;
61
62     GstPad **sinkpads, **srcpads;
63
64     gboolean activated;
65
66     gint samplerate, buffer_frames;
67     gint64 timestamp;
68     gboolean inplace_broken;
69   };
70
71   struct _GstLADSPAClass
72   {
73     GstElementClass parent_class;
74
75     LADSPA_Descriptor *descriptor;
76
77     gint numports, numsinkpads, numsrcpads, numcontrols;
78
79     gint *sinkpad_portnums, *srcpad_portnums, *control_portnums;
80
81     ladspa_control_info *control_info;
82   };
83
84
85 #ifdef __cplusplus
86 }
87 #endif                          /* __cplusplus */
88
89
90 #endif                          /* __GST_LADSPA_H__ */