diff options
author | David Robillard <d@drobilla.net> | 2008-09-29 03:17:06 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2008-09-29 03:17:06 +0000 |
commit | 8ef6955d43a441a5873abaa27049041dea18f79e (patch) | |
tree | e8f7c61e586939f64336ed67c5a0921702159106 /src/libs/engine/LV2Node.cpp | |
parent | 3593abd69807674d9949134f1ad2b7f5a9f69dc2 (diff) | |
download | ingen-8ef6955d43a441a5873abaa27049041dea18f79e.tar.gz ingen-8ef6955d43a441a5873abaa27049041dea18f79e.tar.bz2 ingen-8ef6955d43a441a5873abaa27049041dea18f79e.zip |
* Context extension work.
* Better support for set_port_value on event ports.
* Don't pop audio ports when clicking in event mode.
* Clicking an event port in event mode will 'bang' the event port
(example 'bang' plugin prints when it receives one).
git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@1534 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/libs/engine/LV2Node.cpp')
-rw-r--r-- | src/libs/engine/LV2Node.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/libs/engine/LV2Node.cpp b/src/libs/engine/LV2Node.cpp index d784f1d2..a3c20a95 100644 --- a/src/libs/engine/LV2Node.cpp +++ b/src/libs/engine/LV2Node.cpp @@ -198,6 +198,13 @@ LV2Node::instantiate() if (direction == INPUT && data_type == DataType::CONTROL) ((AudioBuffer*)port->buffer(0))->set_value(def, 0, 0); + + SLV2Value pred = slv2_value_new_uri(info->lv2_world(), + "http://lv2plug.in/ns/dev/contexts#context"); + SLV2Values contexts = slv2_port_get_value(plug, id, pred); + if (slv2_values_size(contexts) > 0) { + cout << "PORT HAS CONTEXT!" << endl; + } _ports->at(j) = port; } |