summaryrefslogtreecommitdiffstats
path: root/src/libs/client/OSCEngineSender.cpp
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2008-08-17 04:05:30 +0000
committerDavid Robillard <d@drobilla.net>2008-08-17 04:05:30 +0000
commitfa067527fe00b66b85d71955e152e9ef9215c9cd (patch)
tree382a8e9e58259929415e7188992252ac1ca2ea9b /src/libs/client/OSCEngineSender.cpp
parent3019b09099371b3fe568b7dcc3bb92203d800b1f (diff)
downloadingen-fa067527fe00b66b85d71955e152e9ef9215c9cd.tar.gz
ingen-fa067527fe00b66b85d71955e152e9ef9215c9cd.tar.bz2
ingen-fa067527fe00b66b85d71955e152e9ef9215c9cd.zip
Replace imperative polyphony/polyphonic stuff with properties (kill more API).
git-svn-id: http://svn.drobilla.net/lad/ingen@1412 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/libs/client/OSCEngineSender.cpp')
-rw-r--r--src/libs/client/OSCEngineSender.cpp58
1 files changed, 26 insertions, 32 deletions
diff --git a/src/libs/client/OSCEngineSender.cpp b/src/libs/client/OSCEngineSender.cpp
index d235e7a9..22f0ce86 100644
--- a/src/libs/client/OSCEngineSender.cpp
+++ b/src/libs/client/OSCEngineSender.cpp
@@ -156,22 +156,14 @@ OSCEngineSender::new_port(const string& path,
void
OSCEngineSender::new_node(const string& path,
- const string& plugin_uri,
- bool polyphonic)
+ const string& plugin_uri)
{
- if (polyphonic)
- send("/ingen/new_node", "issT",
- next_id(),
- path.c_str(),
- plugin_uri.c_str(),
- LO_ARGS_END);
- else
- send("/ingen/new_node", "issF",
- next_id(),
- path.c_str(),
- plugin_uri.c_str(),
- LO_ARGS_END);
+ send("/ingen/new_node", "iss",
+ next_id(),
+ path.c_str(),
+ plugin_uri.c_str(),
+ LO_ARGS_END);
}
@@ -183,25 +175,15 @@ void
OSCEngineSender::new_node_deprecated(const string& path,
const string& plugin_type,
const string& library_name,
- const string& plugin_label,
- bool polyphonic)
+ const string& plugin_label)
{
- if (polyphonic)
- send("/ingen/new_node", "issssT",
- next_id(),
- path.c_str(),
- plugin_type.c_str(),
- library_name.c_str(),
- plugin_label.c_str(),
- LO_ARGS_END);
- else
- send("/ingen/new_node", "issssF",
- next_id(),
- path.c_str(),
- plugin_type.c_str(),
- library_name.c_str(),
- plugin_label.c_str(),
- LO_ARGS_END);
+ send("/ingen/new_node", "issss",
+ next_id(),
+ path.c_str(),
+ plugin_type.c_str(),
+ library_name.c_str(),
+ plugin_label.c_str(),
+ LO_ARGS_END);
}
@@ -459,6 +441,7 @@ OSCEngineSender::request_port_value(const string& port_path)
LO_ARGS_END);
}
+
void
OSCEngineSender::request_variable(const string& object_path, const string& key)
{
@@ -469,6 +452,17 @@ OSCEngineSender::request_variable(const string& object_path, const string& key)
LO_ARGS_END);
}
+
+void
+OSCEngineSender::request_property(const string& object_path, const string& key)
+{
+ send("/ingen/request_property", "iss",
+ next_id(),
+ object_path.c_str(),
+ key.c_str(),
+ LO_ARGS_END);
+}
+
void
OSCEngineSender::request_plugins()