summaryrefslogtreecommitdiffstats
path: root/src/libs/engine/ClientBroadcaster.cpp
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2007-09-19 05:30:41 +0000
committerDavid Robillard <d@drobilla.net>2007-09-19 05:30:41 +0000
commit36b22fe2bea643d7d4ff69764016ae5be9c6de69 (patch)
tree19e99c3bfa011f8ef86ce1438b676d6826cad31a /src/libs/engine/ClientBroadcaster.cpp
parent80d9c348e1e571837ae37cd28d342c81c14a52be (diff)
downloadingen-36b22fe2bea643d7d4ff69764016ae5be9c6de69.tar.gz
ingen-36b22fe2bea643d7d4ff69764016ae5be9c6de69.tar.bz2
ingen-36b22fe2bea643d7d4ff69764016ae5be9c6de69.zip
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
Diffstat (limited to 'src/libs/engine/ClientBroadcaster.cpp')
-rw-r--r--src/libs/engine/ClientBroadcaster.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/libs/engine/ClientBroadcaster.cpp b/src/libs/engine/ClientBroadcaster.cpp
index 5023b2e0..0a98c05c 100644
--- a/src/libs/engine/ClientBroadcaster.cpp
+++ b/src/libs/engine/ClientBroadcaster.cpp
@@ -229,6 +229,14 @@ ClientBroadcaster::send_patch_disable(const string& patch_path)
}
+void
+ClientBroadcaster::send_patch_polyphony(const string& patch_path, uint32_t poly)
+{
+ for (Clients::const_iterator i = _clients.begin(); i != _clients.end(); ++i)
+ (*i).second->patch_polyphony(patch_path, poly);
+}
+
+
/** Send notification of a metadata update.
*
* Like control changes, does not send update to client that set the metadata, if applicable.