diff options
Diffstat (limited to 'src/plugins/delay.c')
-rw-r--r-- | src/plugins/delay.c | 24 |
1 files changed, 11 insertions, 13 deletions
diff --git a/src/plugins/delay.c b/src/plugins/delay.c index 8b03979..5b473da 100644 --- a/src/plugins/delay.c +++ b/src/plugins/delay.c @@ -18,6 +18,7 @@ /*****************************************************************************/ #include "ladspa.h" +#include "utils.h" /*****************************************************************************/ @@ -77,7 +78,7 @@ typedef struct { /*****************************************************************************/ /* Construct a new plugin instance. */ -LADSPA_Handle +static LADSPA_Handle instantiateSimpleDelayLine(const LADSPA_Descriptor * Descriptor, unsigned long SampleRate) { @@ -113,7 +114,7 @@ instantiateSimpleDelayLine(const LADSPA_Descriptor * Descriptor, /*****************************************************************************/ /* Initialise and activate a plugin instance. */ -void +static void activateSimpleDelayLine(LADSPA_Handle Instance) { SimpleDelayLine * psSimpleDelayLine; @@ -130,7 +131,7 @@ activateSimpleDelayLine(LADSPA_Handle Instance) { /*****************************************************************************/ /* Connect a port to a data location. */ -void +static void connectPortToSimpleDelayLine(LADSPA_Handle Instance, unsigned long Port, LADSPA_Data * DataLocation) { @@ -157,7 +158,7 @@ connectPortToSimpleDelayLine(LADSPA_Handle Instance, /*****************************************************************************/ /* Run a delay line instance for a block of SampleCount samples. */ -void +static void runSimpleDelayLine(LADSPA_Handle Instance, unsigned long SampleCount) { @@ -209,7 +210,7 @@ runSimpleDelayLine(LADSPA_Handle Instance, /*****************************************************************************/ /* Throw away a simple delay line. */ -void +static void cleanupSimpleDelayLine(LADSPA_Handle Instance) { SimpleDelayLine * psSimpleDelayLine; @@ -222,14 +223,12 @@ cleanupSimpleDelayLine(LADSPA_Handle Instance) { /*****************************************************************************/ -LADSPA_Descriptor * g_psDescriptor = NULL; +static LADSPA_Descriptor * g_psDescriptor = NULL; /*****************************************************************************/ -/* _init() is called automatically when the plugin library is first - loaded. */ -void -_init() { +/* Called automatically when the plugin library is first loaded. */ +ON_LOAD_ROUTINE { char ** pcPortNames; LADSPA_PortDescriptor * piPortDescriptors; @@ -321,9 +320,8 @@ _init() { /*****************************************************************************/ -/* _fini() is called automatically when the library is unloaded. */ -void -_fini() { +/* Called automatically when the library is unloaded. */ +ON_UNLOAD_ROUTINE { long lIndex; if (g_psDescriptor) { free((char *)g_psDescriptor->Label); |