1 /* GStreamer
2  * Copyright (C) 1999 Erik Walthinsen <omega@cse.ogi.edu>
3  * Copyright (C) 2013 Juan Manuel Borges Caño <juanmabcmail@gmail.com>
4  *
5  * gstladspafilter.h: Header for LADSPA filter
6  *
7  * This library is free software; you can redistribute it and/or
8  * modify it under the terms of the GNU Library General Public
9  * License as published by the Free Software Foundation; either
10  * version 2 of the License, or (at your option) any later version.
11  *
12  * This library is distributed in the hope that it will be useful,
13  * but WITHOUT ANY WARRANTY; without even the implied warranty of
14  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
15  * Library General Public License for more details.
16  *
17  * You should have received a copy of the GNU Library General Public
18  * License along with this library; if not, write to the
19  * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
20  * Boston, MA 02110-1301, USA.
21  */
22 
23 #ifndef __GST_LADSPA_FILTER_H__
24 #define __GST_LADSPA_FILTER_H__
25 
26 #include <gst/gst.h>
27 #include <gst/audio/gstaudiofilter.h>
28 #include "gstladspautils.h"
29 
30 G_BEGIN_DECLS
31 
32 #define GST_TYPE_LADSPA_FILTER              (gst_ladspa_filter_get_type())
33 #define GST_LADSPA_FILTER(obj)              (G_TYPE_CHECK_INSTANCE_CAST((obj),GST_TYPE_LADSPA_FILTER,GstLADSPAFilter))
34 #define GST_LADSPA_FILTER_CAST(obj)         ((GstLADSPAFilter *) (obj))
35 #define GST_LADSPA_FILTER_CLASS(klass)      (G_TYPE_CHECK_CLASS_CAST((klass),GST_TYPE_LADSPA_FILTER,GstLADSPAFilterClass))
36 #define GST_LADSPA_FILTER_CLASS_CAST(klass) ((GstLADSPAFilterClass *) (klass))
37 #define GST_LADSPA_FILTER_GET_CLASS(obj)    (G_TYPE_INSTANCE_GET_CLASS((obj),GST_TYPE_LADSPA_FILTER,GstLADSPAFilterClass))
38 #define GST_IS_LADSPA_FILTER(obj)           (G_TYPE_CHECK_INSTANCE_TYPE((obj),GST_TYPE_LADSPA_FILTER))
39 #define GST_IS_LADSPA_FILTER_CLASS(klass)   (G_TYPE_CHECK_CLASS_TYPE((klass),GST_TYPE_LADSPA_FILTER))
40 
41 typedef struct _GstLADSPAFilter GstLADSPAFilter;
42 
43 typedef struct _GstLADSPAFilterClass GstLADSPAFilterClass;
44 
45 struct _GstLADSPAFilter
46 {
47   GstAudioFilter parent;
48 
49   GstLADSPA ladspa;
50 };
51 
52 struct _GstLADSPAFilterClass
53 {
54   GstAudioFilterClass parent_class;
55 
56   GstLADSPAClass ladspa;
57 };
58 
59 GType
60 gst_ladspa_filter_get_type (void);
61 
62 void
63 ladspa_register_filter_element (GstPlugin * plugin, GstStructure *ladspa_meta);
64 
65 void
66 gst_my_audio_filter_class_add_pad_templates (GstAudioFilterClass * audio_class,
67     GstCaps * srccaps, GstCaps * sinkcaps);
68 
69 G_END_DECLS
70 
71 #endif /* __GST_LADSPA_FILTER_H__ */
72