2001-12-23 15:26:43 +00:00
|
|
|
/* GStreamer
|
|
|
|
* Copyright (C) <1999> Erik Walthinsen <omega@cse.ogi.edu>
|
|
|
|
*
|
|
|
|
* gstladspa.h: Header for LADSPA plugin
|
|
|
|
*
|
|
|
|
* This library is free software; you can redistribute it and/or
|
|
|
|
* modify it under the terms of the GNU Library General Public
|
|
|
|
* License as published by the Free Software Foundation; either
|
|
|
|
* version 2 of the License, or (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This library is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
|
|
* Library General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU Library General Public
|
|
|
|
* License along with this library; if not, write to the
|
2012-11-03 20:38:00 +00:00
|
|
|
* Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
|
|
|
|
* Boston, MA 02110-1301, USA.
|
2001-12-23 15:26:43 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
|
|
#ifndef __GST_LADSPA_H__
|
|
|
|
#define __GST_LADSPA_H__
|
|
|
|
|
|
|
|
|
2005-08-25 09:30:24 +00:00
|
|
|
#include <ladspa.h>
|
|
|
|
|
2001-12-23 15:26:43 +00:00
|
|
|
#include <gst/gst.h>
|
|
|
|
|
2009-06-22 20:50:49 +00:00
|
|
|
#include <gst/signalprocessor/gstsignalprocessor.h>
|
2005-08-25 09:30:24 +00:00
|
|
|
|
2001-12-23 15:26:43 +00:00
|
|
|
|
2005-08-25 09:30:24 +00:00
|
|
|
G_BEGIN_DECLS
|
2001-12-23 15:26:43 +00:00
|
|
|
|
|
|
|
|
2004-03-15 16:32:54 +00:00
|
|
|
typedef struct _ladspa_control_info {
|
|
|
|
gchar *name;
|
|
|
|
gchar *param_name;
|
|
|
|
gfloat lowerbound, upperbound;
|
|
|
|
gfloat def;
|
2009-03-29 17:31:21 +00:00
|
|
|
gboolean lower, upper, samplerate;
|
2004-03-15 16:32:54 +00:00
|
|
|
gboolean toggled, logarithmic, integer, writable;
|
|
|
|
} ladspa_control_info;
|
2001-12-23 15:26:43 +00:00
|
|
|
|
2005-08-25 09:30:24 +00:00
|
|
|
|
2004-03-15 16:32:54 +00:00
|
|
|
typedef struct _GstLADSPA GstLADSPA;
|
|
|
|
typedef struct _GstLADSPAClass GstLADSPAClass;
|
2001-12-23 15:26:43 +00:00
|
|
|
|
2005-08-25 09:30:24 +00:00
|
|
|
|
2004-03-15 16:32:54 +00:00
|
|
|
struct _GstLADSPA {
|
2005-08-25 09:30:24 +00:00
|
|
|
GstSignalProcessor parent;
|
2001-12-23 15:26:43 +00:00
|
|
|
|
2004-03-15 16:32:54 +00:00
|
|
|
LADSPA_Descriptor *descriptor;
|
|
|
|
LADSPA_Handle *handle;
|
2001-12-23 15:26:43 +00:00
|
|
|
|
2004-03-15 16:32:54 +00:00
|
|
|
gboolean activated;
|
|
|
|
gboolean inplace_broken;
|
|
|
|
};
|
2001-12-23 15:26:43 +00:00
|
|
|
|
2004-03-15 16:32:54 +00:00
|
|
|
struct _GstLADSPAClass {
|
2005-08-25 09:30:24 +00:00
|
|
|
GstSignalProcessorClass parent_class;
|
2001-12-23 15:26:43 +00:00
|
|
|
|
2004-03-15 16:32:54 +00:00
|
|
|
LADSPA_Descriptor *descriptor;
|
2001-12-23 15:26:43 +00:00
|
|
|
|
2005-08-26 11:05:13 +00:00
|
|
|
gint *audio_in_portnums;
|
|
|
|
gint *audio_out_portnums;
|
|
|
|
gint *control_in_portnums;
|
|
|
|
gint *control_out_portnums;
|
2004-03-15 16:32:54 +00:00
|
|
|
};
|
2001-12-23 15:26:43 +00:00
|
|
|
|
|
|
|
|
2005-08-25 09:30:24 +00:00
|
|
|
G_END_DECLS
|
2001-12-23 15:26:43 +00:00
|
|
|
|
|
|
|
|
2004-03-15 16:32:54 +00:00
|
|
|
#endif /* __GST_LADSPA_H__ */
|