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/events/SetPolyphonyEvent.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/libs/engine/events/SetPolyphonyEvent.cpp') diff --git a/src/libs/engine/events/SetPolyphonyEvent.cpp b/src/libs/engine/events/SetPolyphonyEvent.cpp index 8dfed9c8..bdf4e1a1 100644 --- a/src/libs/engine/events/SetPolyphonyEvent.cpp +++ b/src/libs/engine/events/SetPolyphonyEvent.cpp @@ -66,10 +66,12 @@ SetPolyphonyEvent::execute(SampleCount nframes, FrameTime start, FrameTime end) void SetPolyphonyEvent::post_process() { - if (_patch) + if (_patch) { _responder->respond_ok(); - else + _engine.broadcaster()->send_patch_polyphony(_patch_path, _poly); + } else { _responder->respond_error("Unable to find patch"); + } } -- cgit v1.2.1