summaryrefslogtreecommitdiffstats
path: root/src/libs/client
diff options
context:
space:
mode:
Diffstat (limited to 'src/libs/client')
-rw-r--r--src/libs/client/OSCEngineInterface.cpp14
-rw-r--r--src/libs/client/OSCEngineInterface.h4
2 files changed, 18 insertions, 0 deletions
diff --git a/src/libs/client/OSCEngineInterface.cpp b/src/libs/client/OSCEngineInterface.cpp
index 5ac598f1..9c6c9299 100644
--- a/src/libs/client/OSCEngineInterface.cpp
+++ b/src/libs/client/OSCEngineInterface.cpp
@@ -113,6 +113,20 @@ OSCEngineInterface::create_patch(const string& path,
void
+OSCEngineInterface::create_port(const string& path,
+ const string& data_type,
+ bool direction)
+{
+ assert(_engine_addr);
+ lo_send(_engine_addr, "/om/synth/create_port", "issi",
+ next_id(),
+ path.c_str(),
+ data_type.c_str(),
+ (direction ? 1 : 0));
+}
+
+
+void
OSCEngineInterface::create_node(const string& path,
const string& plugin_type,
const string& plugin_uri,
diff --git a/src/libs/client/OSCEngineInterface.h b/src/libs/client/OSCEngineInterface.h
index 63157da1..89263e01 100644
--- a/src/libs/client/OSCEngineInterface.h
+++ b/src/libs/client/OSCEngineInterface.h
@@ -71,6 +71,10 @@ public:
void create_patch(const string& path,
uint32_t poly);
+ void create_port(const string& path,
+ const string& data_type,
+ bool direction);
+
void create_node(const string& path,
const string& plugin_type,
const string& plugin_uri,