summaryrefslogtreecommitdiffstats
path: root/src/libs/engine/QueuedEngineInterface.cpp
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2008-08-17 04:12:10 +0000
committerDavid Robillard <d@drobilla.net>2008-08-17 04:12:10 +0000
commit696535322342c56901d4d48641b6f9cf816ac1e1 (patch)
tree48693e04f3c170080deeffc2d13d95daab9afe44 /src/libs/engine/QueuedEngineInterface.cpp
parentfa067527fe00b66b85d71955e152e9ef9215c9cd (diff)
downloadingen-696535322342c56901d4d48641b6f9cf816ac1e1.tar.gz
ingen-696535322342c56901d4d48641b6f9cf816ac1e1.tar.bz2
ingen-696535322342c56901d4d48641b6f9cf816ac1e1.zip
Remove remnants of imperative polyphony interface.
git-svn-id: http://svn.drobilla.net/lad/ingen@1413 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/libs/engine/QueuedEngineInterface.cpp')
-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 //