diff options
author | David Robillard <d@drobilla.net> | 2008-05-19 23:52:44 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2008-05-19 23:52:44 +0000 |
commit | 239825b92b1d4c79ebd67cb3766355bf8e699bc7 (patch) | |
tree | 1f18e56760afcd0fbe201161ca0e7262d6c54124 /src/libs/engine/LV2Node.cpp | |
parent | f9eba59332ee7e45ffbfebcd0ce79e8e0cfd9ec4 (diff) | |
download | ingen-239825b92b1d4c79ebd67cb3766355bf8e699bc7.tar.gz ingen-239825b92b1d4c79ebd67cb3766355bf8e699bc7.tar.bz2 ingen-239825b92b1d4c79ebd67cb3766355bf8e699bc7.zip |
Better global (engine/client) LV2 feature sharing.
Provide URI map extension to plugin UIs.
git-svn-id: http://svn.drobilla.net/lad/ingen@1217 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/libs/engine/LV2Node.cpp')
-rw-r--r-- | src/libs/engine/LV2Node.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/libs/engine/LV2Node.cpp b/src/libs/engine/LV2Node.cpp index bdeca701..9bb05f98 100644 --- a/src/libs/engine/LV2Node.cpp +++ b/src/libs/engine/LV2Node.cpp @@ -75,6 +75,7 @@ LV2Node::prepare_poly(uint32_t poly) _prepared_instances = new Raul::Array<SLV2Instance>(poly, *_instances); for (uint32_t i = _polyphony; i < _prepared_instances->size(); ++i) { + // FIXME: features array (in NodeFactory) must be passed! _prepared_instances->at(i) = slv2_plugin_instantiate( _lv2_plugin->slv2_plugin(), _srate, NULL); @@ -137,7 +138,7 @@ LV2Node::instantiate() uint32_t port_buffer_size = 0; for (uint32_t i=0; i < _polyphony; ++i) { - (*_instances)[i] = slv2_plugin_instantiate(plug, _srate, info->lv2_features); + (*_instances)[i] = slv2_plugin_instantiate(plug, _srate, info->lv2_features()); if ((*_instances)[i] == NULL) { cerr << "Failed to instantiate plugin!" << endl; return false; |