From 36b22fe2bea643d7d4ff69764016ae5be9c6de69 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Wed, 19 Sep 2007 05:30:41 +0000 Subject: Broadcast polyphony changes to clients. Fix some (not all) crashes on polyphony change. git-svn-id: http://svn.drobilla.net/lad/ingen@725 a436a847-0d15-0410-975c-d299462d15a1 --- src/libs/engine/OSCClientSender.cpp | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'src/libs/engine/OSCClientSender.cpp') diff --git a/src/libs/engine/OSCClientSender.cpp b/src/libs/engine/OSCClientSender.cpp index 66b1ed02..2bcd8282 100644 --- a/src/libs/engine/OSCClientSender.cpp +++ b/src/libs/engine/OSCClientSender.cpp @@ -435,6 +435,21 @@ OSCClientSender::patch_disabled(const std::string& patch_path) } +/** \page client_osc_namespace + *

\b /ingen/patch_polyphony - Notification a patch's DSP processing has been polyphony. + * \arg \b path (const std::string&) - Path of polyphony patch

\n \n + */ +void +OSCClientSender::patch_polyphony(const std::string& patch_path, uint32_t poly) +{ + if (!_enabled) + return; + + lo_send(_address, "/ingen/patch_polyphony", "si", patch_path.c_str(), poly); +} + + + /** \page client_osc_namespace *

\b /ingen/new_connection - Notification a new connection has been made. * \arg \b src-path (const std::string&) - Path of the source port -- cgit v1.2.1