Changeset 339
- Timestamp:
- 01/30/06 21:11:29 (3 years ago)
- Files:
-
- libremix/trunk/include/remix/remix_plugin.h (modified) (2 diffs)
- libremix/trunk/src/libremix/remix_context.c (modified) (2 diffs)
- libremix/trunk/src/libremix/remix_gain.c (modified) (2 diffs)
- libremix/trunk/src/libremix/remix_sndfile.c (modified) (2 diffs)
- libremix/trunk/src/plugins/ladspa/remix_ladspa.c (modified) (1 diff)
- libremix/trunk/src/plugins/noise/remix_noise.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
libremix/trunk/include/remix/remix_plugin.h
r170 r339 83 83 84 84 typedef CDList * (*RemixPluginInitFunc) (RemixEnv * env); 85 typedef int (*RemixPluginDestroyFunc) (RemixEnv * env, RemixPlugin * plugin); 85 86 86 87 typedef RemixBase * (*RemixInitFunc) (RemixEnv * env, RemixBase * base, … … 188 189 RemixSuggestFunc suggest; 189 190 void * plugin_data; 191 RemixPluginDestroyFunc destroy; 190 192 }; 191 193 libremix/trunk/src/libremix/remix_context.c
r337 r339 33 33 34 34 static void 35 remix_plugin_destroy (RemixEnv * env, RemixPlugin * plugin) 36 { 37 if (plugin->destroy) { 38 plugin->destroy (env, plugin); 39 } 40 } 41 42 static void 35 43 remix_context_destroy (RemixEnv * env) 36 44 { … … 39 47 40 48 world->purging = 1; 49 50 cd_list_apply (env, world->plugins, (CDFunc)remix_plugin_destroy); 51 world->plugins = cd_list_free (env, world->plugins); 52 41 53 /* XXX: remix_destroy_list (env, world->plugins); */ 42 54 /* XXX: remix_destroy_list (env, world->bases); */ libremix/trunk/src/libremix/remix_gain.c
r161 r339 180 180 } 181 181 182 static int 183 remix_gain_plugin_destroy (RemixEnv * env, RemixPlugin * plugin) 184 { 185 cd_set_free (env, plugin->process_scheme); 186 return 0; 187 } 188 182 189 static struct _RemixParameterScheme gain_envelope_scheme = { 183 190 "Gain envelope", … … 206 213 NULL, /* suggests */ 207 214 NULL, /* plugin_data */ 215 remix_gain_plugin_destroy /* destroy */ 208 216 }; 209 217 libremix/trunk/src/libremix/remix_sndfile.c
r193 r339 387 387 NULL, /* suggests */ 388 388 NULL, /* plugin data */ 389 NULL /* destroy */ 389 390 }; 390 391 … … 397 398 NULL, /* suggests */ 398 399 NULL, /* plugin data */ 400 NULL /* destroy */ 399 401 }; 400 402 libremix/trunk/src/plugins/ladspa/remix_ladspa.c
r168 r339 932 932 plugin->plugin_data = (void *)d; 933 933 934 plugin->destroy = NULL; 935 934 936 plugins = cd_list_append (env, plugins, CD_POINTER(plugin)); 935 937 } libremix/trunk/src/plugins/noise/remix_noise.c
r161 r339 129 129 NULL, /* suggests */ 130 130 NULL, /* plugin data */ 131 NULL /* destroy */ 131 132 }; 132 133
