From ba7bac3955e6f8fd8ee433104ad1255fb4b13035 Mon Sep 17 00:00:00 2001 From: Steve Baker Date: Sat, 20 Apr 2002 13:57:00 +0000 Subject: A fairly large reworking of the ladspa _get, _chain and _loop funcs. highlights are: Original commit message from CVS: A fairly large reworking of the ladspa _get, _chain and _loop funcs. highlights are: - pad names are now g_strcanonised - in all cases possible, src and sink buffers are shared - all ladspa properties are exposed as dparams and element properties - the buffers are now processed in dparam driven loops - timestamps on buffers should be correct - misc fixes It has been minimally tested - the following pipeline works for me: gst-launch ladspa_sine_fcac Frequency=440.0 Amplitude=1.0 name=fcac1 ladspa_sine_fcac Frequency=450.0 Amplitude=1.0 name=fcac2 ladspa_freeverb3 Wet-Level=0.5 name=free float2int name=f2i fcac1.Output!free.Input--Left- free.Output--Left-!f2i.sink%d fcac2.Output!free.Input--Right- free.Output--Right-!f2i.sink%d f2i.src!sink osssink --- ext/ladspa/gstladspa.h | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'ext/ladspa/gstladspa.h') diff --git a/ext/ladspa/gstladspa.h b/ext/ladspa/gstladspa.h index 2273aa5a..18357585 100644 --- a/ext/ladspa/gstladspa.h +++ b/ext/ladspa/gstladspa.h @@ -37,6 +37,7 @@ extern "C" { typedef struct _ladspa_control_info { gchar *name; + gchar *param_name; gfloat lowerbound, upperbound; gboolean lower,upper,samplerate; gboolean toggled, logarithmic, integer, writable; @@ -51,19 +52,20 @@ struct _GstLADSPA { LADSPA_Descriptor *descriptor; LADSPA_Handle *handle; + GstDParamManager *dpman; + gfloat *controls; GstPad **sinkpads, **srcpads; - GstByteStream **bytestreams; GstBufferPool *bufpool; - gboolean loopbased, newcaps, activated; + gboolean newcaps, activated; gint samplerate, buffersize, numbuffers; - gulong timestamp; + gint64 timestamp; }; -- cgit v1.2.1