diff options
author | David Robillard <d@drobilla.net> | 2007-10-22 03:48:28 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2007-10-22 03:48:28 +0000 |
commit | e9d99340c9ac29aaa7912db0554a88820c4a776a (patch) | |
tree | 2bb49de8b90d861330e8db50919a8137b10cc913 /src/libs/engine/OSCClientSender.cpp | |
parent | 5ae4d4d5e805e828b51b98767ac51da24c3b21f1 (diff) | |
download | ingen-e9d99340c9ac29aaa7912db0554a88820c4a776a.tar.gz ingen-e9d99340c9ac29aaa7912db0554a88820c4a776a.tar.bz2 ingen-e9d99340c9ac29aaa7912db0554a88820c4a776a.zip |
Rework plugin design (engine side) to be less crap.
Use LADSPA labels instead of munged friendly names to generate OSC paths.
Separate OSC paths/names from human friendly names (conceptually, still needs UI exposing).
git-svn-id: http://svn.drobilla.net/lad/ingen@898 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/libs/engine/OSCClientSender.cpp')
-rw-r--r-- | src/libs/engine/OSCClientSender.cpp | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/src/libs/engine/OSCClientSender.cpp b/src/libs/engine/OSCClientSender.cpp index 365efeea..95bf520e 100644 --- a/src/libs/engine/OSCClientSender.cpp +++ b/src/libs/engine/OSCClientSender.cpp @@ -472,12 +472,16 @@ OSCClientSender::port_activity(const std::string& port_path) /** \page client_osc_namespace * <p> \b /ingen/plugin - Notification of the existance of a plugin - * \arg \b type (string) - Type of plugin ("LADSPA", "LV2", or "Internal") - * \arg \b uri (string) - Type of plugin ("LADSPA", "LV2", or "Internal") - * \arg \b name (string) - Descriptive human-readable name of plugin (ie "ADSR Envelope") + * \arg \b uri (string) - URI of plugin (e.g. http://example.org/filtermatic) + * \arg \b type (string) - Type of plugin (e.g. "ingen:LV2Plugin") + * \arg \b symbol (string) - Valid symbol for plugin (default symbol for nodes) (e.g. "adsr") + * \arg \b name (string) - Descriptive human-readable name of plugin (e.g. "ADSR Envelope") */ void -OSCClientSender::new_plugin(const std::string& uri, const std::string& type_uri, const std::string& name) +OSCClientSender::new_plugin(const std::string& uri, + const std::string& type_uri, + const std::string& symbol, + const std::string& name) { if (!_enabled) return; @@ -489,6 +493,7 @@ OSCClientSender::new_plugin(const std::string& uri, const std::string& type_uri, lo_message m = lo_message_new(); lo_message_add_string(m, uri.c_str()); lo_message_add_string(m, type_uri.c_str()); + lo_message_add_string(m, symbol.c_str()); lo_message_add_string(m, name.c_str()); if (_transfer) { |