ladspa/ladspa.dif

128 lines
3.9 KiB
Plaintext

Index: ladspa_sdk/src/makefile
===================================================================
--- ladspa_sdk/src/makefile.orig
+++ ladspa_sdk/src/makefile
@@ -27,6 +27,9 @@ PROGRAMS = ../bin/analyseplugin \
../bin/listplugins
CC = cc
CPP = c++
+LD = cc
+MKDIRHIER = mkdir -p
+# MKDIRHIER = mkdirhier
###############################################################################
#
@@ -59,7 +62,7 @@ test: /tmp/test.wav ../snd/noise.wav alw
@echo Test complete.
install: targets
- -mkdirhier $(INSTALL_PLUGINS_DIR)
+ -$(MKDIRHIER) $(INSTALL_PLUGINS_DIR)
-mkdirhier $(INSTALL_INCLUDE_DIR)
-mkdirhier $(INSTALL_BINARY_DIR)
cp ../plugins/* $(INSTALL_PLUGINS_DIR)
Index: ladspa_sdk/src/plugins/amp.c
===================================================================
--- ladspa_sdk/src/plugins/amp.c.orig
+++ ladspa_sdk/src/plugins/amp.c
@@ -152,8 +152,8 @@ LADSPA_Descriptor * g_psStereoDescriptor
/* _init() is called automatically when the plugin library is first
loaded. */
-void
-_init() {
+static void __attribute__((constructor))
+init() {
char ** pcPortNames;
LADSPA_PortDescriptor * piPortDescriptors;
@@ -335,8 +335,8 @@ deleteDescriptor(LADSPA_Descriptor * psD
/*****************************************************************************/
/* _fini() is called automatically when the library is unloaded. */
-void
-_fini() {
+static void __attribute__ ((destructor))
+fini() {
deleteDescriptor(g_psMonoDescriptor);
deleteDescriptor(g_psStereoDescriptor);
}
Index: ladspa_sdk/src/plugins/delay.c
===================================================================
--- ladspa_sdk/src/plugins/delay.c.orig
+++ ladspa_sdk/src/plugins/delay.c
@@ -228,8 +228,8 @@ LADSPA_Descriptor * g_psDescriptor = NUL
/* _init() is called automatically when the plugin library is first
loaded. */
-void
-_init() {
+static void __attribute__ ((constructor))
+init() {
char ** pcPortNames;
LADSPA_PortDescriptor * piPortDescriptors;
@@ -322,8 +322,8 @@ _init() {
/*****************************************************************************/
/* _fini() is called automatically when the library is unloaded. */
-void
-_fini() {
+static void __attribute__ ((destructor))
+fini() {
long lIndex;
if (g_psDescriptor) {
free((char *)g_psDescriptor->Label);
Index: ladspa_sdk/src/plugins/filter.c
===================================================================
--- ladspa_sdk/src/plugins/filter.c.orig
+++ ladspa_sdk/src/plugins/filter.c
@@ -252,8 +252,8 @@ LADSPA_Descriptor * g_psHPFDescriptor =
/* _init() is called automatically when the plugin library is first
loaded. */
-void
-_init() {
+static void __attribute__ ((constructor))
+init() {
char ** pcPortNames;
LADSPA_PortDescriptor * piPortDescriptors;
@@ -431,8 +431,8 @@ deleteDescriptor(LADSPA_Descriptor * psD
/*****************************************************************************/
/* _fini() is called automatically when the library is unloaded. */
-void
-_fini() {
+static void __attribute__ ((destructor))
+fini() {
deleteDescriptor(g_psLPFDescriptor);
deleteDescriptor(g_psHPFDescriptor);
}
Index: ladspa_sdk/src/plugins/noise.c
===================================================================
--- ladspa_sdk/src/plugins/noise.c.orig
+++ ladspa_sdk/src/plugins/noise.c
@@ -142,8 +142,8 @@ LADSPA_Descriptor * g_psDescriptor;
/* _init() is called automatically when the plugin library is first
loaded. */
-void
-_init() {
+static void __attribute__ ((constructor))
+init() {
char ** pcPortNames;
LADSPA_PortDescriptor * piPortDescriptors;
@@ -219,8 +219,8 @@ _init() {
/*****************************************************************************/
/* _fini() is called automatically when the library is unloaded. */
-void
-_fini() {
+static void __attribute__ ((destructor))
+fini() {
long lIndex;
if (g_psDescriptor) {
free((char *)g_psDescriptor->Label);