summaryrefslogtreecommitdiffstats
path: root/src/libs/engine
diff options
context:
space:
mode:
Diffstat (limited to 'src/libs/engine')
-rw-r--r--src/libs/engine/QueuedEngineInterface.cpp14
1 files changed, 12 insertions, 2 deletions
diff --git a/src/libs/engine/QueuedEngineInterface.cpp b/src/libs/engine/QueuedEngineInterface.cpp
index 23b9c77e..3e45734a 100644
--- a/src/libs/engine/QueuedEngineInterface.cpp
+++ b/src/libs/engine/QueuedEngineInterface.cpp
@@ -319,10 +319,20 @@ QueuedEngineInterface::set_property(const string& path,
push_queued(new EnablePatchEvent(_engine, _responder, now(), path, value.get_bool()));
return;
}
+ } else if (predicate == "ingen:polyphonic") {
+ if (value.type() == Atom::BOOL) {
+ push_queued(new SetPolyphonicEvent(_engine, _responder, now(), this, path, value.get_bool()));
+ return;
+ }
+ } else if (predicate == "ingen:polyphony") {
+ if (value.type() == Atom::INT) {
+ push_queued(new SetPolyphonyEvent(_engine, _responder, now(), this, path, value.get_int32()));
+ return;
+ }
}
- cerr << "WARNING: Unknown property \"" << predicate << "\" ignored" << endl;
-}
+ cerr << "WARNING: Unknown property (or bad type) \"" << predicate << "\"" << endl;
+}
// Requests //