aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2011-04-16 19:02:36 +0000
committerDavid Robillard <d@drobilla.net>2011-04-16 19:02:36 +0000
commit0a004fcb5b09812e3a6d4d7ed237034650b90d45 (patch)
treebfde8e2fb4e81ea1913f67ed72b5e54bdcb63193
parent2cb99396df0ee23d0c7fa12bb70d69ed45775978 (diff)
Squeeze blank lines and delete trailing whitespace.
git-svn-id: http://svn.drobilla.net/lad/trunk/omins@3152 a436a847-0d15-0410-975c-d299462d15a1
-rw-r--r--src/adenv.c1
-rw-r--r--src/comparison_4440.c11
-rw-r--r--src/fast_crossfade_4410.c8
-rw-r--r--src/formant_filter_4300.c13
-rw-r--r--src/hz_voct_4200.c11
-rw-r--r--src/masher_4310.c16
-rw-r--r--src/multiplexer_4420.c11
-rw-r--r--src/power_4400.c11
-rw-r--r--src/prob_switch_2667.c11
-rw-r--r--src/range_trans_4210.c11
-rw-r--r--src/sample_and_hold_4430.c10
-rw-r--r--src/signal_abs_2669.c11
-rw-r--r--src/slew_limiter_2743.c13
-rw-r--r--src/slide_2741.c13
-rw-r--r--src/waveguide_mesh_2670.c9
15 files changed, 0 insertions, 160 deletions
diff --git a/src/adenv.c b/src/adenv.c
index eb97108..66a8435 100644
--- a/src/adenv.c
+++ b/src/adenv.c
@@ -33,7 +33,6 @@
#endif
#define G_NOP(s) s
-
#define ADENV_BASE_ID 2661
#define ADENV_VARIANT_COUNT 1
diff --git a/src/comparison_4440.c b/src/comparison_4440.c
index e377223..7c4e15c 100644
--- a/src/comparison_4440.c
+++ b/src/comparison_4440.c
@@ -33,7 +33,6 @@
#define COMP_A_LARGER 4
#define COMP_EQUAL 5
-
/* All state information for plugin */
typedef struct {
/* Ports */
@@ -45,7 +44,6 @@ typedef struct {
LADSPA_Data *equal_buffer;
} Comp;
-
/* Construct a new plugin instance */
LADSPA_Handle
comp_instantiate(const LADSPA_Descriptor* descriptor,
@@ -61,7 +59,6 @@ comp_instantiate(const LADSPA_Descriptor* descriptor,
return (LADSPA_Handle)plugin;
}
-
/* Connect a port to a data location */
void
comp_connect_port(LADSPA_Handle instance,
@@ -93,7 +90,6 @@ comp_connect_port(LADSPA_Handle instance,
}
}
-
void
comp_run_ac(LADSPA_Handle instance, unsigned long nframes)
{
@@ -114,7 +110,6 @@ comp_run_ac(LADSPA_Handle instance, unsigned long nframes)
}
}
-
void
comp_run_aa(LADSPA_Handle instance, unsigned long nframes)
{
@@ -135,18 +130,15 @@ comp_run_aa(LADSPA_Handle instance, unsigned long nframes)
}
}
-
void
comp_cleanup(LADSPA_Handle instance)
{
free(instance);
}
-
LADSPA_Descriptor* comp_ac_desc = NULL;
LADSPA_Descriptor* comp_aa_desc = NULL;
-
/* Called automatically when the plugin library is first loaded. */
void
_init()
@@ -247,7 +239,6 @@ _init()
}
}
-
void
comp_delete_descriptor(LADSPA_Descriptor* psDescriptor)
{
@@ -266,7 +257,6 @@ comp_delete_descriptor(LADSPA_Descriptor* psDescriptor)
}
}
-
/* Called automatically when the library is unloaded. */
void
_fini()
@@ -275,7 +265,6 @@ _fini()
comp_delete_descriptor(comp_aa_desc);
}
-
/* Return a descriptor of the requested plugin type. */
const LADSPA_Descriptor*
ladspa_descriptor(unsigned long Index)
diff --git a/src/fast_crossfade_4410.c b/src/fast_crossfade_4410.c
index 1898175..50dc3b0 100644
--- a/src/fast_crossfade_4410.c
+++ b/src/fast_crossfade_4410.c
@@ -43,7 +43,6 @@ typedef struct {
LADSPA_Data *output_buffer;
} XFADE;
-
/* Construct a new plugin instance */
LADSPA_Handle
XFADE_instantiate(const LADSPA_Descriptor * descriptor, unsigned long srate)
@@ -51,7 +50,6 @@ XFADE_instantiate(const LADSPA_Descriptor * descriptor, unsigned long srate)
return (LADSPA_Handle)malloc(sizeof(XFADE));
}
-
/* Connect a port to a data location */
void
XFADE_connect_port(LADSPA_Handle instance,
@@ -76,7 +74,6 @@ XFADE_connect_port(LADSPA_Handle instance,
}
}
-
void
XFADE_run_ar(LADSPA_Handle instance, unsigned long nframes)
{
@@ -109,14 +106,12 @@ XFADE_run_ar(LADSPA_Handle instance, unsigned long nframes)
}
}
-
void
XFADE_cleanup(LADSPA_Handle instance)
{
free(instance);
}
-
LADSPA_Descriptor *xfade_descriptor = NULL;
/* Called automatically when the plugin library is first loaded. */
@@ -175,7 +170,6 @@ _init()
}
-
void
XFADE_delete_descriptors(LADSPA_Descriptor * psdescriptors)
{
@@ -195,7 +189,6 @@ XFADE_delete_descriptors(LADSPA_Descriptor * psdescriptors)
}
}
-
/* Called automatically when the library is unloaded. */
void
_fini()
@@ -203,7 +196,6 @@ _fini()
XFADE_delete_descriptors(xfade_descriptor);
}
-
/* Return a descriptor of the requested plugin type. */
const LADSPA_Descriptor *
ladspa_descriptor(unsigned long index)
diff --git a/src/formant_filter_4300.c b/src/formant_filter_4300.c
index c80af3f..1cbe3e5 100644
--- a/src/formant_filter_4300.c
+++ b/src/formant_filter_4300.c
@@ -36,7 +36,6 @@
#define FORMANT_INPUT 1
#define FORMANT_OUTPUT 2
-
/* Vowel Coefficients */
const double coeff[5][11] = {
{ /* A */ 8.11044e-06,
@@ -61,7 +60,6 @@ const double coeff[5][11] = {
}
};
-
/* All state information for plugin */
typedef struct
{
@@ -73,7 +71,6 @@ typedef struct
double memory[5][10];
} Formant;
-
/* Linear interpolation */
inline static float
linear(float bot, float top, float pos, float val1, float val2)
@@ -82,7 +79,6 @@ linear(float bot, float top, float pos, float val1, float val2)
return val1 * t + val2 * (1.0f - t);
}
-
/* Construct a new plugin instance */
LADSPA_Handle
formant_instantiate(const LADSPA_Descriptor* descriptor,
@@ -91,7 +87,6 @@ formant_instantiate(const LADSPA_Descriptor* descriptor,
return (LADSPA_Handle)malloc(sizeof(Formant));
}
-
/** Activate an instance */
void
formant_activate(LADSPA_Handle instance)
@@ -104,7 +99,6 @@ formant_activate(LADSPA_Handle instance)
plugin->memory[i][j] = 0.0;
}
-
/* Connect a port to a data location */
void
formant_connect_port(LADSPA_Handle instance,
@@ -127,7 +121,6 @@ formant_connect_port(LADSPA_Handle instance,
}
}
-
void
formant_run_vc(LADSPA_Handle instance, unsigned long nframes)
{
@@ -202,18 +195,15 @@ formant_run_va(LADSPA_Handle instance, unsigned long nframes)
Formant* plugin = (Formant*)instance;
}*/
-
void
formant_cleanup(LADSPA_Handle instance)
{
free(instance);
}
-
LADSPA_Descriptor* formant_vc_desc = NULL;
//LADSPA_Descriptor* formant_va_desc = NULL;
-
/* Called automatically when the plugin library is first loaded. */
void
_init()
@@ -299,7 +289,6 @@ _init()
}*/
}
-
void
formant_delete_descriptor(LADSPA_Descriptor* psDescriptor)
{
@@ -318,7 +307,6 @@ formant_delete_descriptor(LADSPA_Descriptor* psDescriptor)
}
}
-
/* Called automatically when the library is unloaded. */
void
_fini()
@@ -327,7 +315,6 @@ _fini()
//formant_delete_descriptor(formant_va_desc);
}
-
/* Return a descriptor of the requested plugin type. */
const LADSPA_Descriptor*
ladspa_descriptor(unsigned long Index)
diff --git a/src/hz_voct_4200.c b/src/hz_voct_4200.c
index 86c8dae..ea0aad8 100644
--- a/src/hz_voct_4200.c
+++ b/src/hz_voct_4200.c
@@ -30,7 +30,6 @@
#define HZVOCT_INPUT 0
#define HZVOCT_OUTPUT 1
-
/* All state information for plugin */
typedef struct
{
@@ -39,7 +38,6 @@ typedef struct
LADSPA_Data* output_buffer;
} HzVoct;
-
/* Construct a new plugin instance */
LADSPA_Handle
hzvoct_instantiate(const LADSPA_Descriptor* descriptor,
@@ -51,7 +49,6 @@ hzvoct_instantiate(const LADSPA_Descriptor* descriptor,
return (LADSPA_Handle)plugin;
}
-
/* Connect a port to a data location */
void
hzvoct_connect_port(LADSPA_Handle instance,
@@ -71,7 +68,6 @@ hzvoct_connect_port(LADSPA_Handle instance,
}
}
-
void
hzvoct_run_cr(LADSPA_Handle instance, unsigned long nframes)
{
@@ -86,7 +82,6 @@ hzvoct_run_cr(LADSPA_Handle instance, unsigned long nframes)
*plugin->output_buffer = logf(*plugin->input_buffer * eighth) * log2inv - offset;
}
-
void
hzvoct_run_ar(LADSPA_Handle instance, unsigned long nframes)
{
@@ -109,18 +104,15 @@ hzvoct_run_ar(LADSPA_Handle instance, unsigned long nframes)
*output++ = logf((*input++) * eighth) * log2inv - offset;
}
-
void
hzvoct_cleanup(LADSPA_Handle instance)
{
free(instance);
}
-
LADSPA_Descriptor* hz_voct_cr_desc = NULL;
LADSPA_Descriptor* hz_voct_ar_desc = NULL;
-
/* Called automatically when the plugin library is first loaded. */
void
_init()
@@ -197,7 +189,6 @@ _init()
}
}
-
void
hzvoct_delete_descriptor(LADSPA_Descriptor* psDescriptor)
{
@@ -216,7 +207,6 @@ hzvoct_delete_descriptor(LADSPA_Descriptor* psDescriptor)
}
}
-
/* Called automatically when the library is unloaded. */
void
_fini()
@@ -225,7 +215,6 @@ _fini()
hzvoct_delete_descriptor(hz_voct_ar_desc);
}
-
/* Return a descriptor of the requested plugin type. */
const LADSPA_Descriptor*
ladspa_descriptor(unsigned long Index)
diff --git a/src/masher_4310.c b/src/masher_4310.c
index 67e49a4..16efb07 100644
--- a/src/masher_4310.c
+++ b/src/masher_4310.c
@@ -17,11 +17,9 @@
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
*/
-
/* NOTE: This is a very dirty hack full of arbitrary limits and assumptions.
* It needs fixing/completion */
-
#define _XOPEN_SOURCE 600 /* posix_memalign */
#include <stdlib.h>
#include <math.h>
@@ -49,13 +47,11 @@ typedef struct {
size_t length;
} Sample;
-
typedef struct {
int pos;
int grain;
} GrainDesc;
-
/* All state information for plugin */
typedef struct {
/* Ports */
@@ -71,14 +67,12 @@ typedef struct {
size_t write_grain;
} Masher;
-
float
rand_range(float l, float h)
{
return ((rand() % 10000 / 10000.0f) * (h - l)) + l;
}
-
/* Construct a new plugin instance */
LADSPA_Handle
masher_instantiate(const LADSPA_Descriptor * descriptor, unsigned long srate)
@@ -86,7 +80,6 @@ masher_instantiate(const LADSPA_Descriptor * descriptor, unsigned long srate)
return (LADSPA_Handle)malloc(sizeof(Masher));
}
-
/** Activate an instance */
void
masher_activate(LADSPA_Handle instance)
@@ -104,7 +97,6 @@ masher_activate(LADSPA_Handle instance)
}
}
-
/* Connect a port to a data location */
void
masher_connect_port(LADSPA_Handle instance,
@@ -128,7 +120,6 @@ masher_connect_port(LADSPA_Handle instance,
}
}
-
void
mix_pitch(Sample* src, Sample* dst, size_t pos, float pitch)
{
@@ -142,7 +133,6 @@ mix_pitch(Sample* src, Sample* dst, size_t pos, float pitch)
}
}
-
void
masher_run(LADSPA_Handle instance, unsigned long nframes)
{
@@ -225,17 +215,14 @@ masher_run(LADSPA_Handle instance, unsigned long nframes)
}
}
-
void
masher_cleanup(LADSPA_Handle instance)
{
free(instance);
}
-
LADSPA_Descriptor *masher_desc = NULL;
-
/* Called automatically when the plugin library is first loaded. */
void
_init()
@@ -303,7 +290,6 @@ _init()
}
}
-
void
masher_delete_descriptor(LADSPA_Descriptor * psDescriptor)
{
@@ -330,7 +316,6 @@ _fini()
masher_delete_descriptor(masher_desc);
}
-
/* Return a descriptor of the requested plugin type. */
const LADSPA_Descriptor *
ladspa_descriptor(unsigned long Index)
@@ -343,4 +328,3 @@ ladspa_descriptor(unsigned long Index)
}
}
-
diff --git a/src/multiplexer_4420.c b/src/multiplexer_4420.c
index ce7c192..1d680fa 100644
--- a/src/multiplexer_4420.c
+++ b/src/multiplexer_4420.c
@@ -33,7 +33,6 @@
#define MUX_ON 2
#define MUX_OUTPUT 3
-
/* All state information for plugin */
typedef struct
{
@@ -44,7 +43,6 @@ typedef struct
LADSPA_Data* output_buffer;
} MUX;
-
/* Construct a new plugin instance */
LADSPA_Handle
MUX_instantiate(const LADSPA_Descriptor* descriptor,
@@ -53,7 +51,6 @@ MUX_instantiate(const LADSPA_Descriptor* descriptor,
return (LADSPA_Handle)malloc(sizeof(MUX));
}
-
/* Connect a port to a data location */
void
MUX_connect_port(LADSPA_Handle instance,
@@ -79,7 +76,6 @@ MUX_connect_port(LADSPA_Handle instance,
}
}
-
void
MUX_run_cr(LADSPA_Handle instance, unsigned long nframes)
{
@@ -91,7 +87,6 @@ MUX_run_cr(LADSPA_Handle instance, unsigned long nframes)
*plugin->output_buffer = *plugin->on_buffer;
}
-
void
MUX_run_ar(LADSPA_Handle instance, unsigned long nframes)
{
@@ -106,18 +101,15 @@ MUX_run_ar(LADSPA_Handle instance, unsigned long nframes)
output[i] = (gate[i] <= 0) ? off[i] : on[i];
}
-
void
MUX_cleanup(LADSPA_Handle instance)
{
free(instance);
}
-
LADSPA_Descriptor* MUX_cr_desc = NULL;
LADSPA_Descriptor* MUX_ar_desc = NULL;
-
/* Called automatically when the plugin library is first loaded. */
void
_init()
@@ -204,7 +196,6 @@ _init()
}
}
-
void
MUX_delete_descriptor(LADSPA_Descriptor* psDescriptor)
{
@@ -223,7 +214,6 @@ MUX_delete_descriptor(LADSPA_Descriptor* psDescriptor)
}
}
-
/* Called automatically when the library is unloaded. */
void
_fini()
@@ -232,7 +222,6 @@ _fini()
MUX_delete_descriptor(MUX_ar_desc);
}
-
/* Return a descriptor of the requested plugin type. */
const LADSPA_Descriptor*
ladspa_descriptor(unsigned long Index)
diff --git a/src/power_4400.c b/src/power_4400.c
index b2925dd..bb11e5d 100644
--- a/src/power_4400.c
+++ b/src/power_4400.c
@@ -33,7 +33,6 @@
#define POWER_EXPONENT 1
#define POWER_RESULT 2
-
/* All state information for plugin */
typedef struct
{
@@ -43,7 +42,6 @@ typedef struct
LADSPA_Data* result_buffer;
} POWER;
-
/* Construct a new plugin instance */
LADSPA_Handle
POWER_instantiate(const LADSPA_Descriptor* descriptor,
@@ -52,7 +50,6 @@ POWER_instantiate(const LADSPA_Descriptor* descriptor,
return (LADSPA_Handle)malloc(sizeof(POWER));
}
-
/* Connect a port to a data location */
void
POWER_connect_port(LADSPA_Handle instance,
@@ -75,7 +72,6 @@ POWER_connect_port(LADSPA_Handle instance,
}
}
-
void
POWER_run_cr(LADSPA_Handle instance, unsigned long nframes)
{
@@ -84,7 +80,6 @@ POWER_run_cr(LADSPA_Handle instance, unsigned long nframes)
*plugin->result_buffer = powf(*plugin->base_buffer, *plugin->exponent_buffer);
}
-
void
POWER_run_ar(LADSPA_Handle instance, unsigned long nframes)
{
@@ -98,18 +93,15 @@ POWER_run_ar(LADSPA_Handle instance, unsigned long nframes)
result[i] = powf(base[i], exponent[i]);
}
-
void
POWER_cleanup(LADSPA_Handle instance)
{
free(instance);
}
-
LADSPA_Descriptor* power_cr_desc = NULL;
LADSPA_Descriptor* power_ar_desc = NULL;
-
/* Called automatically when the plugin library is first loaded. */
void
_init()
@@ -192,7 +184,6 @@ _init()
}
}
-
void
POWER_delete_descriptor(LADSPA_Descriptor* psDescriptor)
{
@@ -211,7 +202,6 @@ POWER_delete_descriptor(LADSPA_Descriptor* psDescriptor)
}
}
-
/* Called automatically when the library is unloaded. */
void
_fini()
@@ -220,7 +210,6 @@ _fini()
POWER_delete_descriptor(power_ar_desc);
}
-
/* Return a descriptor of the requested plugin type. */
const LADSPA_Descriptor*
ladspa_descriptor(unsigned long Index)
diff --git a/src/prob_switch_2667.c b/src/prob_switch_2667.c
index fe35fdc..2d34a43 100644
--- a/src/prob_switch_2667.c
+++ b/src/prob_switch_2667.c
@@ -34,7 +34,6 @@
#define PROBSWITCH_PROB 2
#define PROBSWITCH_OUTPUT 3
-
/* All state information for plugin */
typedef struct
{
@@ -45,7 +44,6 @@ typedef struct
LADSPA_Data* output;
} ProbSwitch;
-
/* Construct a new plugin instance */
LADSPA_Handle
probswitch_instantiate(const LADSPA_Descriptor* descriptor,
@@ -54,7 +52,6 @@ probswitch_instantiate(const LADSPA_Descriptor* descriptor,
return (LADSPA_Handle)malloc(sizeof(ProbSwitch));
}
-
/* Connect a port to a data location */
void
probswitch_connect_port(LADSPA_Handle instance,
@@ -80,7 +77,6 @@ probswitch_connect_port(LADSPA_Handle instance,
}
}
-
void
probswitch_run_cr(LADSPA_Handle instance, unsigned long nframes)
{
@@ -107,7 +103,6 @@ probswitch_run_cr(LADSPA_Handle instance, unsigned long nframes)
}
-
void
probswitch_run_ar(LADSPA_Handle instance, unsigned long nframes)
{
@@ -131,18 +126,15 @@ probswitch_run_ar(LADSPA_Handle instance, unsigned long nframes)
}
}
-
void
probswitch_cleanup(LADSPA_Handle instance)
{
free(instance);
}
-
LADSPA_Descriptor* prob_switch_cr_desc = NULL;
LADSPA_Descriptor* prob_switch_ar_desc = NULL;
-
/* Called automatically when the plugin library is first loaded. */
void
_init()
@@ -231,7 +223,6 @@ _init()
}
}
-
void
probswitch_delete_descriptor(LADSPA_Descriptor* psDescriptor)
{
@@ -250,7 +241,6 @@ probswitch_delete_descriptor(LADSPA_Descriptor* psDescriptor)
}
}
-
/* Called automatically when the library is unloaded. */
void
_fini()
@@ -259,7 +249,6 @@ _fini()
probswitch_delete_descriptor(prob_switch_ar_desc);
}
-
/* Return a descriptor of the requested plugin type. */
const LADSPA_Descriptor*
ladspa_descriptor(unsigned long Index)
diff --git a/src/range_trans_4210.c b/src/range_trans_4210.c
index e2266ef..66c9595 100644
--- a/src/range_trans_4210.c
+++ b/src/range_trans_4210.c
@@ -34,7 +34,6 @@
#define RANGETRANS_INPUT 4
#define RANGETRANS_OUTPUT 5
-
/* All state information for plugin */
typedef struct
{
@@ -47,7 +46,6 @@ typedef struct
LADSPA_Data* output;
} RangeTrans;
-
/* Construct a new plugin instance */
LADSPA_Handle
rangetrans_instantiate(const LADSPA_Descriptor* descriptor,
@@ -56,7 +54,6 @@ rangetrans_instantiate(const LADSPA_Descriptor* descriptor,
return (LADSPA_Handle)malloc(sizeof(RangeTrans));
}
-
/* Connect a port to a data location */
void
rangetrans_connect_port(LADSPA_Handle instance,
@@ -88,7 +85,6 @@ rangetrans_connect_port(LADSPA_Handle instance,
}
}
-
void
rangetrans_run_cr(LADSPA_Handle instance, unsigned long nframes)
{
@@ -106,7 +102,6 @@ rangetrans_run_cr(LADSPA_Handle instance, unsigned long nframes)
* (out_max - out_min) + out_min;
}
-
void
rangetrans_run_ar(LADSPA_Handle instance, unsigned long nframes)
{
@@ -124,18 +119,15 @@ rangetrans_run_ar(LADSPA_Handle instance, unsigned long nframes)
* (out_max[i] - out_min[i]) + out_min[i];
}
-
void
rangetrans_cleanup(LADSPA_Handle instance)
{
free(instance);
}
-
LADSPA_Descriptor* range_trans_cr_desc = NULL;
LADSPA_Descriptor* range_trans_ar_desc = NULL;
-
/* Called automatically when the plugin library is first loaded. */
void
_init()
@@ -236,7 +228,6 @@ _init()
}
}
-
void
rangetrans_delete_descriptor(LADSPA_Descriptor* psDescriptor)
{
@@ -255,7 +246,6 @@ rangetrans_delete_descriptor(LADSPA_Descriptor* psDescriptor)
}
}
-
/* Called automatically when the library is unloaded. */
void
_fini()
@@ -264,7 +254,6 @@ _fini()
rangetrans_delete_descriptor(range_trans_ar_desc);
}
-
/* Return a descriptor of the requested plugin type. */
const LADSPA_Descriptor*
ladspa_descriptor(unsigned long Index)
diff --git a/src/sample_and_hold_4430.c b/src/sample_and_hold_4430.c
index ae5144d..2548818 100644
--- a/src/sample_and_hold_4430.c
+++ b/src/sample_and_hold_4430.c
@@ -33,7 +33,6 @@
#define SH_CONTINUOUS 3
#define SH_OUTPUT 4
-
/* All state information for plugin */
typedef struct
{
@@ -48,7 +47,6 @@ typedef struct
float last_trigger; /* trigger port value from the previous frame */
} SH;
-
/* Construct a new plugin instance */
LADSPA_Handle
SH_instantiate(const LADSPA_Descriptor * descriptor, unsigned long srate)
@@ -56,7 +54,6 @@ SH_instantiate(const LADSPA_Descriptor * descriptor, unsigned long srate)
return (LADSPA_Handle)malloc(sizeof(SH));
}
-
/* Connect a port to a data location */
void
SH_connect_port(LADSPA_Handle instance,
@@ -126,7 +123,6 @@ SH_run_cr(LADSPA_Handle instance, unsigned long nframes)
}
}
-
void
SH_run_ar(LADSPA_Handle instance, unsigned long nframes)
{
@@ -156,18 +152,15 @@ SH_run_ar(LADSPA_Handle instance, unsigned long nframes)
}
}
-
void
SH_cleanup(LADSPA_Handle instance)
{
free(instance);
}
-
LADSPA_Descriptor* SH_cr_desc = NULL;
LADSPA_Descriptor* SH_ar_desc = NULL;
-
/* Called automatically when the plugin library is first loaded. */
void
_init()
@@ -260,7 +253,6 @@ _init()
}
}
-
void
SH_delete_descriptor(LADSPA_Descriptor* psDescriptor)
{
@@ -279,7 +271,6 @@ SH_delete_descriptor(LADSPA_Descriptor* psDescriptor)
}
}
-
/* Called automatically when the library is unloaded. */
void
_fini()
@@ -288,7 +279,6 @@ _fini()
SH_delete_descriptor(SH_ar_desc);
}
-
/* Return a descriptor of the requested plugin type. */
const LADSPA_Descriptor*
ladspa_descriptor(unsigned long Index)
diff --git a/src/signal_abs_2669.c b/src/signal_abs_2669.c
index f709426..f9205ea 100644
--- a/src/signal_abs_2669.c
+++ b/src/signal_abs_2669.c
@@ -33,7 +33,6 @@
#define SIGNAL_ABS_SIGN 1
#define SIGNAL_ABS_OUTPUT 2
-
/* All state information for plugin */
typedef struct
{
@@ -43,7 +42,6 @@ typedef struct
LADSPA_Data* output;
} SignalAbs;
-
/* Construct a new plugin instance */
LADSPA_Handle
signalabs_instantiate(const LADSPA_Descriptor* descriptor,
@@ -52,7 +50,6 @@ signalabs_instantiate(const LADSPA_Descriptor* descriptor,
return (LADSPA_Handle)malloc(sizeof(SignalAbs));
}
-
/* Connect a port to a data location */
void
signalabs_connect_port(LADSPA_Handle instance,
@@ -75,7 +72,6 @@ signalabs_connect_port(LADSPA_Handle instance,
}
}
-
void
signalabs_run_cr(LADSPA_Handle instance, unsigned long nframes)
{
@@ -99,7 +95,6 @@ signalabs_run_cr(LADSPA_Handle instance, unsigned long nframes)
}
-
void
signalabs_run_ar(LADSPA_Handle instance, unsigned long nframes)
{
@@ -122,18 +117,15 @@ signalabs_run_ar(LADSPA_Handle instance, unsigned long nframes)
}
}
-
void
signalabs_cleanup(LADSPA_Handle instance)
{
free(instance);
}
-
LADSPA_Descriptor* signal_abs_cr_desc = NULL;
LADSPA_Descriptor* signal_abs_ar_desc = NULL;
-
/* Called automatically when the plugin library is first loaded. */
void
_init()
@@ -216,7 +208,6 @@ _init()
}
}
-
void
signalabs_delete_descriptor(LADSPA_Descriptor* psDescriptor)
{
@@ -235,7 +226,6 @@ signalabs_delete_descriptor(LADSPA_Descriptor* psDescriptor)
}
}
-
/* Called automatically when the library is unloaded. */
void
_fini()
@@ -244,7 +234,6 @@ _fini()
signalabs_delete_descriptor(signal_abs_ar_desc);
}
-
/* Return a descriptor of the requested plugin type. */
const LADSPA_Descriptor*
ladspa_descriptor(unsigned long Index)
diff --git a/src/slew_limiter_2743.c b/src/slew_limiter_2743.c
index 74ba867..fb5ef1c 100644
--- a/src/slew_limiter_2743.c
+++ b/src/slew_limiter_2743.c
@@ -35,11 +35,9 @@
#define SLIM_MAXFALL 2
#define SLIM_OUTPUT 3
-
/* This is an array pointer to the descriptors of the different variants */
LADSPA_Descriptor** slim_descriptors = 0;
-
/* This is the data for a single instance of the plugin */
typedef struct
{
@@ -53,8 +51,6 @@ typedef struct
}
SLim;
-
-
/* LADSPA hosts use this function to get the plugin descriptors */
const LADSPA_Descriptor* ladspa_descriptor(unsigned long index)
{
@@ -63,14 +59,12 @@ const LADSPA_Descriptor* ladspa_descriptor(unsigned long index)
return 0;
}
-
/* Clean up after a plugin instance */
void cleanupSLim (LADSPA_Handle instance)
{
free(instance);
}
-
/* This is called when the hosts connects a port to a buffer */
void connectPortSLim(LADSPA_Handle instance,
unsigned long port, LADSPA_Data* data)
@@ -93,7 +87,6 @@ void connectPortSLim(LADSPA_Handle instance,
}
}
-
/* The host uses this function to create an instance of a plugin */
LADSPA_Handle instantiateSLim(const LADSPA_Descriptor * descriptor,
unsigned long sample_rate)
@@ -103,7 +96,6 @@ LADSPA_Handle instantiateSLim(const LADSPA_Descriptor * descriptor,
return (LADSPA_Handle)plugin;
}
-
/* This is called before the hosts starts to use the plugin instance */
void activateSLim(LADSPA_Handle instance)
{
@@ -111,7 +103,6 @@ void activateSLim(LADSPA_Handle instance)
plugin->last_output = 0;
}
-
/* The run function! */
void runSLim(LADSPA_Handle instance, unsigned long sample_count, int variant)
{
@@ -150,19 +141,16 @@ void runSLim(LADSPA_Handle instance, unsigned long sample_count, int variant)
}
}
-
void runSLim_audio(LADSPA_Handle instance, unsigned long sample_count)
{
runSLim(instance, sample_count, 0);
}
-
void runSLim_control(LADSPA_Handle instance, unsigned long sample_count)
{
runSLim(instance, sample_count, 1);
}
-
/* Called automagically by the dynamic linker - set up global stuff here */
void _init(void)
{
@@ -250,7 +238,6 @@ void _init(void)
}
}
-
/* Called automagically by the dynamic linker - free global stuff here */
void _fini(void)
{
diff --git a/src/slide_2741.c b/src/slide_2741.c
index 86b1488..4eebfbb 100644
--- a/src/slide_2741.c
+++ b/src/slide_2741.c
@@ -35,11 +35,9 @@
#define SLIDE_FALLTIME 2
#define SLIDE_OUTPUT 3
-
/* This is an array pointer to the descriptors of the different variants */
LADSPA_Descriptor** slide_descriptors = 0;
-
/* This is the data for a single instance of the plugin */
typedef struct
{
@@ -53,8 +51,6 @@ typedef struct
LADSPA_Data last_output;
} Slide;
-
-
/* LADSPA hosts use this function to get the plugin descriptors */
const LADSPA_Descriptor* ladspa_descriptor(unsigned long index)
{
@@ -63,14 +59,12 @@ const LADSPA_Descriptor* ladspa_descriptor(unsigned long index)
return 0;
}
-
/* Clean up after a plugin instance */
void cleanupSlide (LADSPA_Handle instance)
{
free(instance);
}
-
/* This is called when the hosts connects a port to a buffer */
void connectPortSlide(LADSPA_Handle instance,
unsigned long port, LADSPA_Data* data)
@@ -93,7 +87,6 @@ void connectPortSlide(LADSPA_Handle instance,
}
}
-
/* The host uses this function to create an instance of a plugin */
LADSPA_Handle instantiateSlide(const LADSPA_Descriptor * descriptor,
unsigned long sample_rate)
@@ -103,7 +96,6 @@ LADSPA_Handle instantiateSlide(const LADSPA_Descriptor * descriptor,
return (LADSPA_Handle)plugin;
}
-
/* This is called before the hosts starts to use the plugin instance */
void activateSlide(LADSPA_Handle instance)
{
@@ -113,7 +105,6 @@ void activateSlide(LADSPA_Handle instance)
plugin->to = 0;
}
-
/* The run function! */
void runSlide(LADSPA_Handle instance, unsigned long sample_count, int variant)
{
@@ -174,19 +165,16 @@ void runSlide(LADSPA_Handle instance, unsigned long sample_count, int variant)
}
}
-
void runSlide_audio(LADSPA_Handle instance, unsigned long sample_count)
{
runSlide(instance, sample_count, 0);
}
-
void runSlide_control(LADSPA_Handle instance, unsigned long sample_count)
{
runSlide(instance, sample_count, 1);
}
-
/* Called automagically by the dynamic linker - set up global stuff here */
void _init(void)
{
@@ -274,7 +262,6 @@ void _init(void)
}
}
-
/* Called automagically by the dynamic linker - free global stuff here */
void _fini(void)
{
diff --git a/src/waveguide_mesh_2670.c b/src/waveguide_mesh_2670.c
index 6d11905..5ff3859 100644
--- a/src/waveguide_mesh_2670.c
+++ b/src/waveguide_mesh_2670.c
@@ -42,7 +42,6 @@
#define MESH_EX_X 4
#define MESH_EX_Y 5
-
#define LENGTH 8 // must be divisible by 4!!
#define WIDTH 8
#define SIZE LENGTH*WIDTH // Size of mesh
@@ -87,7 +86,6 @@ typedef struct
} WgMesh;
-
/* Construct a new plugin instance */
LADSPA_Handle
wgmesh_instantiate(const LADSPA_Descriptor* descriptor,
@@ -113,7 +111,6 @@ wgmesh_instantiate(const LADSPA_Descriptor* descriptor,
return (LADSPA_Handle)plugin;
}
-
/* Connect a port to a data location */
void
wgmesh_connect_port(LADSPA_Handle instance,
@@ -145,7 +142,6 @@ wgmesh_connect_port(LADSPA_Handle instance,
}
}
-
inline static void excite_mesh(WgMesh* plugin, LADSPA_Data power, LADSPA_Data ex_x, LADSPA_Data ex_y)
{
int i=ex_x,j=ex_y;
@@ -249,10 +245,8 @@ wgmesh_cleanup(LADSPA_Handle instance)
free(instance);
}
-
LADSPA_Descriptor* wg_mesh_cr_desc = NULL;
-
/* Called automatically when the plugin library is first loaded. */
void
_init()
@@ -320,7 +314,6 @@ _init()
}
}
-
void
wgmesh_delete_descriptor(LADSPA_Descriptor* psDescriptor)
{
@@ -339,7 +332,6 @@ wgmesh_delete_descriptor(LADSPA_Descriptor* psDescriptor)
}
}
-
/* Called automatically when the library is unloaded. */
void
_fini()
@@ -347,7 +339,6 @@ _fini()
wgmesh_delete_descriptor(wg_mesh_cr_desc);
}
-
/* Return a descriptor of the requested plugin type. */
const LADSPA_Descriptor*
ladspa_descriptor(unsigned long Index)