added constructor/destructor-attribute to _init() and _finit()-methods in order to make those LADSPA-plugins work properly in win32-version
git-svn-id: https://lmms.svn.sf.net/svnroot/lmms/trunk/lmms@1346 0778d3d1-df1d-0410-868b-ea421aaaa00d
This commit is contained in:
@@ -15,24 +15,24 @@ SHARED_EXT=so
|
||||
LINKFLAGS=-nostartfiles
|
||||
endif
|
||||
|
||||
PLUGINS = tap_autopan.$(SHARED_EXT) \
|
||||
tap_chorusflanger.$(SHARED_EXT) \
|
||||
tap_deesser.$(SHARED_EXT) \
|
||||
tap_dynamics_m.$(SHARED_EXT) \
|
||||
tap_dynamics_st.$(SHARED_EXT) \
|
||||
tap_eq.$(SHARED_EXT) \
|
||||
tap_eqbw.$(SHARED_EXT) \
|
||||
tap_doubler.$(SHARED_EXT) \
|
||||
tap_pinknoise.$(SHARED_EXT) \
|
||||
tap_pitch.$(SHARED_EXT) \
|
||||
tap_reflector.$(SHARED_EXT) \
|
||||
tap_reverb.$(SHARED_EXT) \
|
||||
tap_rotspeak.$(SHARED_EXT) \
|
||||
tap_limiter.$(SHARED_EXT) \
|
||||
tap_sigmoid.$(SHARED_EXT) \
|
||||
tap_echo.$(SHARED_EXT) \
|
||||
tap_tremolo.$(SHARED_EXT) \
|
||||
tap_tubewarmth.$(SHARED_EXT) \
|
||||
PLUGINS = tap_autopan.$(SHARED_EXT) \
|
||||
tap_chorusflanger.$(SHARED_EXT) \
|
||||
tap_deesser.$(SHARED_EXT) \
|
||||
tap_dynamics_m.$(SHARED_EXT) \
|
||||
tap_dynamics_st.$(SHARED_EXT) \
|
||||
tap_eq.$(SHARED_EXT) \
|
||||
tap_eqbw.$(SHARED_EXT) \
|
||||
tap_doubler.$(SHARED_EXT) \
|
||||
tap_pinknoise.$(SHARED_EXT) \
|
||||
tap_pitch.$(SHARED_EXT) \
|
||||
tap_reflector.$(SHARED_EXT) \
|
||||
tap_reverb.$(SHARED_EXT) \
|
||||
tap_rotspeak.$(SHARED_EXT) \
|
||||
tap_limiter.$(SHARED_EXT) \
|
||||
tap_sigmoid.$(SHARED_EXT) \
|
||||
tap_echo.$(SHARED_EXT) \
|
||||
tap_tremolo.$(SHARED_EXT) \
|
||||
tap_tubewarmth.$(SHARED_EXT) \
|
||||
tap_vibrato.$(SHARED_EXT)
|
||||
|
||||
|
||||
|
||||
@@ -233,10 +233,10 @@ LADSPA_Descriptor * mono_descriptor = NULL;
|
||||
|
||||
|
||||
|
||||
/* _init() is called automatically when the plugin library is first
|
||||
/* __attribute__((constructor)) _init() is called automatically when the plugin library is first
|
||||
loaded. */
|
||||
void
|
||||
_init() {
|
||||
__attribute__((constructor)) _init() {
|
||||
|
||||
int i;
|
||||
char ** port_names;
|
||||
@@ -341,9 +341,9 @@ delete_descriptor(LADSPA_Descriptor * descriptor) {
|
||||
}
|
||||
|
||||
|
||||
/* _fini() is called automatically when the library is unloaded. */
|
||||
/* __attribute__((destructor)) _fini() is called automatically when the library is unloaded. */
|
||||
void
|
||||
_fini() {
|
||||
__attribute__((destructor)) _fini() {
|
||||
delete_descriptor(mono_descriptor);
|
||||
}
|
||||
|
||||
|
||||
@@ -436,10 +436,10 @@ LADSPA_Descriptor * stereo_descriptor = NULL;
|
||||
|
||||
|
||||
|
||||
/* _init() is called automatically when the plugin library is first
|
||||
/* __attribute__((constructor)) _init() is called automatically when the plugin library is first
|
||||
loaded. */
|
||||
void
|
||||
_init() {
|
||||
__attribute__((constructor)) _init() {
|
||||
|
||||
char ** port_names;
|
||||
LADSPA_PortDescriptor * port_descriptors;
|
||||
@@ -575,9 +575,9 @@ delete_descriptor(LADSPA_Descriptor * descriptor) {
|
||||
}
|
||||
|
||||
|
||||
/* _fini() is called automatically when the library is unloaded. */
|
||||
/* __attribute__((destructor)) _fini() is called automatically when the library is unloaded. */
|
||||
void
|
||||
_fini() {
|
||||
__attribute__((destructor)) _fini() {
|
||||
delete_descriptor(stereo_descriptor);
|
||||
}
|
||||
|
||||
|
||||
@@ -349,10 +349,10 @@ LADSPA_Descriptor * mono_descriptor = NULL;
|
||||
|
||||
|
||||
|
||||
/* _init() is called automatically when the plugin library is first
|
||||
/* __attribute__((constructor)) _init() is called automatically when the plugin library is first
|
||||
loaded. */
|
||||
void
|
||||
_init() {
|
||||
__attribute__((constructor)) _init() {
|
||||
|
||||
int i;
|
||||
char ** port_names;
|
||||
@@ -471,9 +471,9 @@ delete_descriptor(LADSPA_Descriptor * descriptor) {
|
||||
}
|
||||
|
||||
|
||||
/* _fini() is called automatically when the library is unloaded. */
|
||||
/* __attribute__((destructor)) _fini() is called automatically when the library is unloaded. */
|
||||
void
|
||||
_fini() {
|
||||
__attribute__((destructor)) _fini() {
|
||||
delete_descriptor(mono_descriptor);
|
||||
}
|
||||
|
||||
|
||||
@@ -574,10 +574,10 @@ LADSPA_Descriptor * stereo_descriptor = NULL;
|
||||
|
||||
|
||||
|
||||
/* _init() is called automatically when the plugin library is first
|
||||
/* __attribute__((constructor)) _init() is called automatically when the plugin library is first
|
||||
loaded. */
|
||||
void
|
||||
_init() {
|
||||
__attribute__((constructor)) _init() {
|
||||
|
||||
char ** port_names;
|
||||
LADSPA_PortDescriptor * port_descriptors;
|
||||
@@ -717,9 +717,9 @@ delete_descriptor(LADSPA_Descriptor * descriptor) {
|
||||
}
|
||||
|
||||
|
||||
/* _fini() is called automatically when the library is unloaded. */
|
||||
/* __attribute__((destructor)) _fini() is called automatically when the library is unloaded. */
|
||||
void
|
||||
_fini() {
|
||||
__attribute__((destructor)) _fini() {
|
||||
delete_descriptor(stereo_descriptor);
|
||||
}
|
||||
|
||||
|
||||
@@ -516,10 +516,10 @@ LADSPA_Descriptor * mono_descriptor = NULL;
|
||||
|
||||
|
||||
|
||||
/* _init() is called automatically when the plugin library is first
|
||||
/* __attribute__((constructor)) _init() is called automatically when the plugin library is first
|
||||
loaded. */
|
||||
void
|
||||
_init() {
|
||||
__attribute__((constructor)) _init() {
|
||||
|
||||
char ** port_names;
|
||||
LADSPA_PortDescriptor * port_descriptors;
|
||||
@@ -646,9 +646,9 @@ delete_descriptor(LADSPA_Descriptor * descriptor) {
|
||||
}
|
||||
|
||||
|
||||
/* _fini() is called automatically when the library is unloaded. */
|
||||
/* __attribute__((destructor)) _fini() is called automatically when the library is unloaded. */
|
||||
void
|
||||
_fini() {
|
||||
__attribute__((destructor)) _fini() {
|
||||
delete_descriptor(mono_descriptor);
|
||||
}
|
||||
|
||||
|
||||
@@ -696,10 +696,10 @@ LADSPA_Descriptor * stereo_descriptor = NULL;
|
||||
|
||||
|
||||
|
||||
/* _init() is called automatically when the plugin library is first
|
||||
/* __attribute__((constructor)) _init() is called automatically when the plugin library is first
|
||||
loaded. */
|
||||
void
|
||||
_init() {
|
||||
__attribute__((constructor)) _init() {
|
||||
|
||||
char ** port_names;
|
||||
LADSPA_PortDescriptor * port_descriptors;
|
||||
@@ -857,9 +857,9 @@ delete_descriptor(LADSPA_Descriptor * descriptor) {
|
||||
}
|
||||
|
||||
|
||||
/* _fini() is called automatically when the library is unloaded. */
|
||||
/* __attribute__((destructor)) _fini() is called automatically when the library is unloaded. */
|
||||
void
|
||||
_fini() {
|
||||
__attribute__((destructor)) _fini() {
|
||||
delete_descriptor(stereo_descriptor);
|
||||
}
|
||||
|
||||
|
||||
@@ -437,10 +437,10 @@ LADSPA_Descriptor * stereo_descriptor = NULL;
|
||||
|
||||
|
||||
|
||||
/* _init() is called automatically when the plugin library is first
|
||||
/* __attribute__((constructor)) _init() is called automatically when the plugin library is first
|
||||
loaded. */
|
||||
void
|
||||
_init() {
|
||||
__attribute__((constructor)) _init() {
|
||||
|
||||
char ** port_names;
|
||||
LADSPA_PortDescriptor * port_descriptors;
|
||||
@@ -608,9 +608,9 @@ delete_descriptor(LADSPA_Descriptor * descriptor) {
|
||||
}
|
||||
|
||||
|
||||
/* _fini() is called automatically when the library is unloaded. */
|
||||
/* __attribute__((destructor)) _fini() is called automatically when the library is unloaded. */
|
||||
void
|
||||
_fini() {
|
||||
__attribute__((destructor)) _fini() {
|
||||
delete_descriptor(stereo_descriptor);
|
||||
}
|
||||
|
||||
|
||||
@@ -468,7 +468,7 @@ run_adding_eq(LADSPA_Handle instance, unsigned long sample_count) {
|
||||
|
||||
|
||||
void
|
||||
_init() {
|
||||
__attribute__((constructor)) _init() {
|
||||
|
||||
char **port_names;
|
||||
LADSPA_PortDescriptor *port_descriptors;
|
||||
@@ -739,7 +739,7 @@ _init() {
|
||||
|
||||
|
||||
void
|
||||
_fini() {
|
||||
__attribute__((destructor)) _fini() {
|
||||
|
||||
if (eqDescriptor) {
|
||||
free((LADSPA_PortDescriptor *)eqDescriptor->PortDescriptors);
|
||||
|
||||
@@ -562,7 +562,7 @@ run_adding_eq(LADSPA_Handle instance, unsigned long sample_count) {
|
||||
|
||||
|
||||
void
|
||||
_init() {
|
||||
__attribute__((constructor)) _init() {
|
||||
|
||||
char **port_names;
|
||||
LADSPA_PortDescriptor *port_descriptors;
|
||||
@@ -921,7 +921,7 @@ _init() {
|
||||
|
||||
|
||||
void
|
||||
_fini() {
|
||||
__attribute__((destructor)) _fini() {
|
||||
|
||||
if (eqDescriptor) {
|
||||
free((LADSPA_PortDescriptor *)eqDescriptor->PortDescriptors);
|
||||
|
||||
@@ -324,10 +324,10 @@ LADSPA_Descriptor * mono_descriptor = NULL;
|
||||
|
||||
|
||||
|
||||
/* _init() is called automatically when the plugin library is first
|
||||
/* __attribute__((constructor)) _init() is called automatically when the plugin library is first
|
||||
loaded. */
|
||||
void
|
||||
_init() {
|
||||
__attribute__((constructor)) _init() {
|
||||
|
||||
char ** port_names;
|
||||
LADSPA_PortDescriptor * port_descriptors;
|
||||
@@ -423,9 +423,9 @@ delete_descriptor(LADSPA_Descriptor * descriptor) {
|
||||
}
|
||||
|
||||
|
||||
/* _fini() is called automatically when the library is unloaded. */
|
||||
/* __attribute__((destructor)) _fini() is called automatically when the library is unloaded. */
|
||||
void
|
||||
_fini() {
|
||||
__attribute__((destructor)) _fini() {
|
||||
delete_descriptor(mono_descriptor);
|
||||
}
|
||||
|
||||
|
||||
@@ -225,10 +225,10 @@ LADSPA_Descriptor * mono_descriptor = NULL;
|
||||
|
||||
|
||||
|
||||
/* _init() is called automatically when the plugin library is first
|
||||
/* __attribute__((constructor)) _init() is called automatically when the plugin library is first
|
||||
loaded. */
|
||||
void
|
||||
_init() {
|
||||
__attribute__((constructor)) _init() {
|
||||
|
||||
char ** port_names;
|
||||
LADSPA_PortDescriptor * port_descriptors;
|
||||
@@ -325,9 +325,9 @@ delete_descriptor(LADSPA_Descriptor * descriptor) {
|
||||
}
|
||||
|
||||
|
||||
/* _fini() is called automatically when the library is unloaded. */
|
||||
/* __attribute__((destructor)) _fini() is called automatically when the library is unloaded. */
|
||||
void
|
||||
_fini() {
|
||||
__attribute__((destructor)) _fini() {
|
||||
delete_descriptor(mono_descriptor);
|
||||
}
|
||||
|
||||
|
||||
@@ -418,10 +418,10 @@ LADSPA_Descriptor * mono_descriptor = NULL;
|
||||
|
||||
|
||||
|
||||
/* _init() is called automatically when the plugin library is first
|
||||
/* __attribute__((constructor)) _init() is called automatically when the plugin library is first
|
||||
loaded. */
|
||||
void
|
||||
_init() {
|
||||
__attribute__((constructor)) _init() {
|
||||
|
||||
int i;
|
||||
char ** port_names;
|
||||
@@ -536,9 +536,9 @@ delete_descriptor(LADSPA_Descriptor * descriptor) {
|
||||
}
|
||||
|
||||
|
||||
/* _fini() is called automatically when the library is unloaded. */
|
||||
/* __attribute__((destructor)) _fini() is called automatically when the library is unloaded. */
|
||||
void
|
||||
_fini() {
|
||||
__attribute__((destructor)) _fini() {
|
||||
delete_descriptor(mono_descriptor);
|
||||
}
|
||||
|
||||
|
||||
@@ -378,10 +378,10 @@ LADSPA_Descriptor * mono_descriptor = NULL;
|
||||
|
||||
|
||||
|
||||
/* _init() is called automatically when the plugin library is first
|
||||
/* __attribute__((constructor)) _init() is called automatically when the plugin library is first
|
||||
loaded. */
|
||||
void
|
||||
_init() {
|
||||
__attribute__((constructor)) _init() {
|
||||
|
||||
int i;
|
||||
char ** port_names;
|
||||
@@ -480,9 +480,9 @@ delete_descriptor(LADSPA_Descriptor * descriptor) {
|
||||
}
|
||||
|
||||
|
||||
/* _fini() is called automatically when the library is unloaded. */
|
||||
/* __attribute__((destructor)) _fini() is called automatically when the library is unloaded. */
|
||||
void
|
||||
_fini() {
|
||||
__attribute__((destructor)) _fini() {
|
||||
delete_descriptor(mono_descriptor);
|
||||
}
|
||||
|
||||
|
||||
@@ -665,10 +665,10 @@ LADSPA_Descriptor * stereo_descriptor = NULL;
|
||||
|
||||
|
||||
|
||||
/* _init() is called automatically when the plugin library is first
|
||||
/* __attribute__((constructor)) _init() is called automatically when the plugin library is first
|
||||
loaded. */
|
||||
void
|
||||
_init() {
|
||||
__attribute__((constructor)) _init() {
|
||||
|
||||
char ** port_names;
|
||||
LADSPA_PortDescriptor * port_descriptors;
|
||||
@@ -815,9 +815,9 @@ delete_descriptor(LADSPA_Descriptor * descriptor) {
|
||||
}
|
||||
|
||||
|
||||
/* _fini() is called automatically when the library is unloaded. */
|
||||
/* __attribute__((destructor)) _fini() is called automatically when the library is unloaded. */
|
||||
void
|
||||
_fini() {
|
||||
__attribute__((destructor)) _fini() {
|
||||
delete_descriptor(stereo_descriptor);
|
||||
}
|
||||
|
||||
|
||||
@@ -576,10 +576,10 @@ LADSPA_Descriptor * stereo_descriptor = NULL;
|
||||
|
||||
|
||||
|
||||
/* _init() is called automatically when the plugin library is first
|
||||
/* __attribute__((constructor)) _init() is called automatically when the plugin library is first
|
||||
loaded. */
|
||||
void
|
||||
_init() {
|
||||
__attribute__((constructor)) _init() {
|
||||
|
||||
int i;
|
||||
char ** port_names;
|
||||
@@ -700,9 +700,9 @@ delete_descriptor(LADSPA_Descriptor * descriptor) {
|
||||
}
|
||||
|
||||
|
||||
/* _fini() is called automatically when the library is unloaded. */
|
||||
/* __attribute__((destructor)) _fini() is called automatically when the library is unloaded. */
|
||||
void
|
||||
_fini() {
|
||||
__attribute__((destructor)) _fini() {
|
||||
delete_descriptor(stereo_descriptor);
|
||||
}
|
||||
|
||||
|
||||
@@ -187,10 +187,10 @@ LADSPA_Descriptor * mono_descriptor = NULL;
|
||||
|
||||
|
||||
|
||||
/* _init() is called automatically when the plugin library is first
|
||||
/* __attribute__((constructor)) _init() is called automatically when the plugin library is first
|
||||
loaded. */
|
||||
void
|
||||
_init() {
|
||||
__attribute__((constructor)) _init() {
|
||||
|
||||
char ** port_names;
|
||||
LADSPA_PortDescriptor * port_descriptors;
|
||||
@@ -277,9 +277,9 @@ delete_descriptor(LADSPA_Descriptor * descriptor) {
|
||||
}
|
||||
|
||||
|
||||
/* _fini() is called automatically when the library is unloaded. */
|
||||
/* __attribute__((destructor)) _fini() is called automatically when the library is unloaded. */
|
||||
void
|
||||
_fini() {
|
||||
__attribute__((destructor)) _fini() {
|
||||
delete_descriptor(mono_descriptor);
|
||||
}
|
||||
|
||||
|
||||
@@ -220,10 +220,10 @@ LADSPA_Descriptor * mono_descriptor = NULL;
|
||||
|
||||
|
||||
|
||||
/* _init() is called automatically when the plugin library is first
|
||||
/* __attribute__((constructor)) _init() is called automatically when the plugin library is first
|
||||
loaded. */
|
||||
void
|
||||
_init() {
|
||||
__attribute__((constructor)) _init() {
|
||||
|
||||
char ** port_names;
|
||||
LADSPA_PortDescriptor * port_descriptors;
|
||||
@@ -323,9 +323,9 @@ delete_descriptor(LADSPA_Descriptor * descriptor) {
|
||||
}
|
||||
|
||||
|
||||
/* _fini() is called automatically when the library is unloaded. */
|
||||
/* __attribute__((destructor)) _fini() is called automatically when the library is unloaded. */
|
||||
void
|
||||
_fini() {
|
||||
__attribute__((destructor)) _fini() {
|
||||
delete_descriptor(mono_descriptor);
|
||||
}
|
||||
|
||||
|
||||
@@ -381,10 +381,10 @@ LADSPA_Descriptor * mono_descriptor = NULL;
|
||||
|
||||
|
||||
|
||||
/* _init() is called automatically when the plugin library is first
|
||||
/* __attribute__((constructor)) _init() is called automatically when the plugin library is first
|
||||
loaded. */
|
||||
void
|
||||
_init() {
|
||||
__attribute__((constructor)) _init() {
|
||||
|
||||
char ** port_names;
|
||||
LADSPA_PortDescriptor * port_descriptors;
|
||||
@@ -471,9 +471,9 @@ delete_descriptor(LADSPA_Descriptor * descriptor) {
|
||||
}
|
||||
|
||||
|
||||
/* _fini() is called automatically when the library is unloaded. */
|
||||
/* __attribute__((destructor)) _fini() is called automatically when the library is unloaded. */
|
||||
void
|
||||
_fini() {
|
||||
__attribute__((destructor)) _fini() {
|
||||
delete_descriptor(mono_descriptor);
|
||||
}
|
||||
|
||||
|
||||
@@ -305,10 +305,10 @@ LADSPA_Descriptor * mono_descriptor = NULL;
|
||||
|
||||
|
||||
|
||||
/* _init() is called automatically when the plugin library is first
|
||||
/* __attribute__((constructor)) _init() is called automatically when the plugin library is first
|
||||
loaded. */
|
||||
void
|
||||
_init() {
|
||||
__attribute__((constructor)) _init() {
|
||||
|
||||
int i;
|
||||
char ** port_names;
|
||||
@@ -422,9 +422,9 @@ delete_descriptor(LADSPA_Descriptor * descriptor) {
|
||||
}
|
||||
|
||||
|
||||
/* _fini() is called automatically when the library is unloaded. */
|
||||
/* __attribute__((destructor)) _fini() is called automatically when the library is unloaded. */
|
||||
void
|
||||
_fini() {
|
||||
__attribute__((destructor)) _fini() {
|
||||
delete_descriptor(mono_descriptor);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user