summaryrefslogtreecommitdiffstats
path: root/src/engine/LV2Node.cpp
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2011-01-08 05:20:34 +0000
committerDavid Robillard <d@drobilla.net>2011-01-08 05:20:34 +0000
commit79fceb7b387cf45deab770a12f116493a24e5350 (patch)
tree7c12f6103b4772622cf10d18039b08655d0986b3 /src/engine/LV2Node.cpp
parente1f6dcf7dca9363f901cd96fc389e03f4cf75e12 (diff)
downloadingen-79fceb7b387cf45deab770a12f116493a24e5350.tar.gz
ingen-79fceb7b387cf45deab770a12f116493a24e5350.tar.bz2
ingen-79fceb7b387cf45deab770a12f116493a24e5350.zip
Support "request run" feature from contexts extension.
git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@2791 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/engine/LV2Node.cpp')
-rw-r--r--src/engine/LV2Node.cpp9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/engine/LV2Node.cpp b/src/engine/LV2Node.cpp
index 8291adf2..26ad0b77 100644
--- a/src/engine/LV2Node.cpp
+++ b/src/engine/LV2Node.cpp
@@ -149,10 +149,11 @@ LV2Node::instantiate(BufferFactory& bufs)
_ports = new Raul::Array<PortImpl*>(num_ports, NULL);
_instances = new Instances(_polyphony, SharedPtr<void>());
- _features = info->world().lv2_features()->lv2_features(this);
+ _features = info->world().lv2_features()->lv2_features(&info->world(), this);
uint32_t port_buffer_size = 0;
- SLV2Value ctx_ext_uri = slv2_value_new_uri(info->lv2_world(), LV2_CONTEXT_MESSAGE);
+ SLV2Value ctx_ext_uri = slv2_value_new_uri(info->lv2_world(),
+ LV2_CONTEXTS_URI "#MessageContext");
for (uint32_t i = 0; i < _polyphony; ++i) {
(*_instances)[i] = SharedPtr<void>(
@@ -169,7 +170,7 @@ LV2Node::instantiate(BufferFactory& bufs)
continue;
const void* ctx_ext = slv2_instance_get_extension_data(
- instance(i), LV2_CONTEXT_MESSAGE);
+ instance(i), LV2_CONTEXTS_URI "#MessageContext");
if (i == 0 && ctx_ext) {
assert(!_message_funcs);
@@ -320,7 +321,7 @@ LV2Node::instantiate(BufferFactory& bufs)
for (uint32_t i = 0; i < slv2_values_size(contexts); ++i) {
SLV2Value c = slv2_values_get_at(contexts, i);
const char* context = slv2_value_as_string(c);
- if (!strcmp(LV2_CONTEXT_MESSAGE, context)) {
+ if (!strcmp(LV2_CONTEXTS_URI "#MessageContext", context)) {
if (!_message_funcs) {
warn << _lv2_plugin->uri()
<< " has a message port, but no context extension data." << endl;