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/client/OSCClientReceiver.cpp | 2 +- src/libs/client/SigClientInterface.hpp | 4 ++++ src/libs/client/ThreadedSigClientInterface.hpp | 5 +++++ 3 files changed, 10 insertions(+), 1 deletion(-) (limited to 'src/libs/client') diff --git a/src/libs/client/OSCClientReceiver.cpp b/src/libs/client/OSCClientReceiver.cpp index de51ad22..058bf006 100644 --- a/src/libs/client/OSCClientReceiver.cpp +++ b/src/libs/client/OSCClientReceiver.cpp @@ -39,7 +39,7 @@ OSCClientReceiver::OSCClientReceiver(int listen_port) // _receiving_node_num_ports(0), // _num_received_ports(0) { - start(false); + start(true); } diff --git a/src/libs/client/SigClientInterface.hpp b/src/libs/client/SigClientInterface.hpp index bdb1ff23..29c13741 100644 --- a/src/libs/client/SigClientInterface.hpp +++ b/src/libs/client/SigClientInterface.hpp @@ -55,6 +55,7 @@ public: sigc::signal new_port_sig; sigc::signal patch_enabled_sig; sigc::signal patch_disabled_sig; + sigc::signal patch_polyphony_sig; sigc::signal patch_cleared_sig; sigc::signal object_renamed_sig; sigc::signal object_destroyed_sig; @@ -113,6 +114,9 @@ protected: void patch_disabled(const string& path) { patch_disabled_sig.emit(path); } + + void patch_polyphony(const string& path, uint32_t poly) + { patch_polyphony_sig.emit(path, poly); } void patch_cleared(const string& path) { patch_cleared_sig.emit(path); } diff --git a/src/libs/client/ThreadedSigClientInterface.hpp b/src/libs/client/ThreadedSigClientInterface.hpp index ed9f0ed4..71ee96d2 100644 --- a/src/libs/client/ThreadedSigClientInterface.hpp +++ b/src/libs/client/ThreadedSigClientInterface.hpp @@ -57,6 +57,7 @@ public: , connection_slot(connection_sig.make_slot()) , patch_enabled_slot(patch_enabled_sig.make_slot()) , patch_disabled_slot(patch_disabled_sig.make_slot()) + , patch_polyphony_slot(patch_polyphony_sig.make_slot()) , patch_cleared_slot(patch_cleared_sig.make_slot()) , object_destroyed_slot(object_destroyed_sig.make_slot()) , object_renamed_slot(object_renamed_sig.make_slot()) @@ -115,6 +116,9 @@ public: void patch_disabled(const string& path) { push_sig(sigc::bind(patch_disabled_slot, path)); } + + void patch_polyphony(const string& path, uint32_t poly) + { push_sig(sigc::bind(patch_polyphony_slot, path, poly)); } void patch_cleared(const string& path) { push_sig(sigc::bind(patch_cleared_slot, path)); } @@ -161,6 +165,7 @@ private: sigc::slot connection_slot; sigc::slot patch_enabled_slot; sigc::slot patch_disabled_slot; + sigc::slot patch_polyphony_slot; sigc::slot patch_cleared_slot; sigc::slot object_destroyed_slot; sigc::slot object_renamed_slot; -- cgit v1.2.1