diff options
author | David Robillard <d@drobilla.net> | 2007-09-30 17:36:38 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2007-09-30 17:36:38 +0000 |
commit | c40ddfc0eebbcb3333d6cc9e3df7fb62ecb45941 (patch) | |
tree | 6e73d5d43284335031cee32f9225b698f315a59d /src/libs/engine/LV2Node.cpp | |
parent | 829075dff9fe5d0b3f243f9e40256563a5f8e09a (diff) | |
download | ingen-c40ddfc0eebbcb3333d6cc9e3df7fb62ecb45941.tar.gz ingen-c40ddfc0eebbcb3333d6cc9e3df7fb62ecb45941.tar.bz2 ingen-c40ddfc0eebbcb3333d6cc9e3df7fb62ecb45941.zip |
Better driver interface for input/output.
MIDI output (pass-through anyway, plugin->output is still screwy).
Fix crash on failure to instantiate LV2 plugin.
git-svn-id: http://svn.drobilla.net/lad/ingen@786 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/libs/engine/LV2Node.cpp')
-rw-r--r-- | src/libs/engine/LV2Node.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libs/engine/LV2Node.cpp b/src/libs/engine/LV2Node.cpp index 88c002e5..5eea2f23 100644 --- a/src/libs/engine/LV2Node.cpp +++ b/src/libs/engine/LV2Node.cpp @@ -123,9 +123,9 @@ LV2Node::instantiate() uint32_t num_ports = slv2_plugin_get_num_ports(_lv2_plugin); assert(num_ports > 0); - _ports = new Raul::Array<Port*>(num_ports); + _ports = new Raul::Array<Port*>(num_ports, NULL); - _instances = new Raul::Array<SLV2Instance>(_polyphony); + _instances = new Raul::Array<SLV2Instance>(_polyphony, NULL); uint32_t port_buffer_size = 0; |