2 * Copyright (C) 1999 Erik Walthinsen <omega@cse.ogi.edu>
3 * Copyright (C) 2013 Juan Manuel Borges CaƱo <juanmabcmail@gmail.com>
5 * gstladspafilter.h: Header for LADSPA filter
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.
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.
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.
23 #ifndef __GST_LADSPA_FILTER_H__
24 #define __GST_LADSPA_FILTER_H__
27 #include <gst/audio/gstaudiofilter.h>
28 #include "gstladspautils.h"
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))
41 typedef struct _GstLADSPAFilter GstLADSPAFilter;
43 typedef struct _GstLADSPAFilterClass GstLADSPAFilterClass;
45 struct _GstLADSPAFilter
47 GstAudioFilter parent;
52 struct _GstLADSPAFilterClass
54 GstAudioFilterClass parent_class;
56 GstLADSPAClass ladspa;
60 gst_ladspa_filter_get_type (void);
63 ladspa_register_filter_element (GstPlugin * plugin, GstStructure *ladspa_meta);
66 gst_my_audio_filter_class_add_pad_templates (GstAudioFilterClass * audio_class,
67 GstCaps * srccaps, GstCaps * sinkcaps);
71 #endif /* __GST_LADSPA_FILTER_H__ */