aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIOhannes m zmölnig <zmoelnig@users.sourceforge.net>2010-06-09 10:07:18 +0000
committerIOhannes m zmölnig <zmoelnig@users.sourceforge.net>2010-06-09 10:07:18 +0000
commiteabab8a01dc61e78cc76185271e0698e1fb7fc04 (patch)
treee8eb132a5ee41a9d2f41ae0d598ae0ac3535649f
parent8689fe86f6e0750a71847f514427eb6ed500bce7 (diff)
on successfull loading of a plugin, report back the name
svn path=/trunk/externals/plugin~/; revision=13629
-rw-r--r--plugin~.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/plugin~.c b/plugin~.c
index c8d44b0..ed3a79d 100644
--- a/plugin~.c
+++ b/plugin~.c
@@ -122,6 +122,8 @@ static void* plugin_tilde_new (t_symbol* s_name, t_symbol* s_lib_name)
(unsigned long)sys_getsr ())) {
error("plugin~: Unable to open plugin '%s' in '%s'", s_name->s_name, x->plugin_library_filename);
plugin_tilde_ladspa_close_plugin (x);
+ } else {
+ post("plugin~: \"%s\"", x->plugin.ladspa.type->Name);
}
}
}
@@ -380,6 +382,9 @@ static void plugin_tilde_plug (Pd_Plugin_Tilde* x, t_symbol* plug_name) {
error("plugin~: plugin not found in any library");
if (plugin_tilde_open_plugin (x, plug_name->s_name, x->plugin_library_filename,(unsigned long)sys_getsr ()))
error("plugin~: Unable to open plugin");
+ else {
+ post("plugin~: \"%s\"", x->plugin.ladspa.type->Name);
+ }
}
static void plugin_tilde_reset (Pd_Plugin_Tilde* x)