ladspa/ladspa.dif

113 lines
3.6 KiB
Plaintext

---
src/plugins/amp.c | 8 ++++----
src/plugins/delay.c | 8 ++++----
src/plugins/filter.c | 8 ++++----
src/plugins/noise.c | 8 ++++----
5 files changed, 22 insertions(+), 19 deletions(-)
#
Index: src/plugins/amp.c
===================================================================
--- src/plugins/amp.c.orig 2019-01-04 15:15:04.192234406 +0200
+++ src/plugins/amp.c 2019-01-04 15:15:27.917159413 +0200
@@ -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: src/plugins/delay.c
===================================================================
--- src/plugins/delay.c.orig 2019-01-04 15:15:04.192234406 +0200
+++ src/plugins/delay.c 2019-01-04 15:15:27.917159413 +0200
@@ -228,8 +228,8 @@ static LADSPA_Descriptor * g_psDescripto
/* _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: src/plugins/filter.c
===================================================================
--- src/plugins/filter.c.orig 2019-01-04 15:15:04.192234406 +0200
+++ src/plugins/filter.c 2019-01-04 15:15:27.917159413 +0200
@@ -252,8 +252,8 @@ static LADSPA_Descriptor * g_psHPFDescri
/* _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: src/plugins/noise.c
===================================================================
--- src/plugins/noise.c.orig 2019-01-04 15:15:04.192234406 +0200
+++ src/plugins/noise.c 2019-01-04 15:15:27.917159413 +0200
@@ -142,8 +142,8 @@ static LADSPA_Descriptor * g_psDescripto
/* _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);