From 8450921d5309c5ba677997e7ca722a466c8dc222 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sun, 30 Sep 2007 23:36:39 +0000 Subject: Working port notification for LV2 GUIs (ll-plugins VU meter works in Ingen now). git-svn-id: http://svn.drobilla.net/lad/ingen@790 a436a847-0d15-0410-975c-d299462d15a1 --- src/libs/client/OSCEngineSender.cpp | 18 ++++++++++++++++++ src/libs/client/OSCEngineSender.hpp | 4 ++++ 2 files changed, 22 insertions(+) (limited to 'src/libs/client') diff --git a/src/libs/client/OSCEngineSender.cpp b/src/libs/client/OSCEngineSender.cpp index 1618f2a1..e3183f78 100644 --- a/src/libs/client/OSCEngineSender.cpp +++ b/src/libs/client/OSCEngineSender.cpp @@ -450,6 +450,24 @@ OSCEngineSender::set_port_value_immediate(const string& port_path, } } + +void +OSCEngineSender::enable_port_broadcasting(const string& port_path) +{ + lo_send(_engine_addr, "/ingen/enable_port_broadcasting", "is", + next_id(), + port_path.c_str()); +} + + +void +OSCEngineSender::disable_port_broadcasting(const string& port_path) +{ + lo_send(_engine_addr, "/ingen/disable_port_broadcasting", "is", + next_id(), + port_path.c_str()); +} + void OSCEngineSender::set_program(const string& node_path, diff --git a/src/libs/client/OSCEngineSender.hpp b/src/libs/client/OSCEngineSender.hpp index c91dfbbd..c97c4e94 100644 --- a/src/libs/client/OSCEngineSender.hpp +++ b/src/libs/client/OSCEngineSender.hpp @@ -132,6 +132,10 @@ public: uint32_t voice, uint32_t data_size, const void* data); + + void enable_port_broadcasting(const string& port_path); + + void disable_port_broadcasting(const string& port_path); void set_program(const string& node_path, uint32_t bank, -- cgit v1.2.1