diff options
-rw-r--r-- | src/engine/LV2Node.cpp | 9 | ||||
-rw-r--r-- | src/engine/PatchImpl.cpp | 2 | ||||
-rw-r--r-- | src/engine/PortImpl.cpp | 1 |
3 files changed, 5 insertions, 7 deletions
diff --git a/src/engine/LV2Node.cpp b/src/engine/LV2Node.cpp index 4e0f7416..96118e00 100644 --- a/src/engine/LV2Node.cpp +++ b/src/engine/LV2Node.cpp @@ -186,9 +186,8 @@ LV2Node::instantiate() for (uint32_t j=0; j < num_ports; ++j) { SLV2Port id = slv2_plugin_get_port_by_index(plug, j); - // LV2 shortnames are guaranteed to be unique, valid C identifiers + // LV2 port symbols are guaranteed to be unique, valid C identifiers port_name = slv2_value_as_string(slv2_port_get_symbol(plug, id)); - assert(port_name.find("/") == string::npos); port_path = path() + "/" + port_name; @@ -221,8 +220,8 @@ LV2Node::instantiate() } // FIXME: need nice type preserving SLV2Value -> Raul::Atom conversion - float def = isnan(def_values[j]) ? 0.0f : def_values[j]; - Atom defatm = def; + const float def = isnan(def_values[j]) ? 0.0f : def_values[j]; + const Atom defatm = def; if (direction == INPUT) port = new InputPort(this, port_name, j, _polyphony, data_type, defatm, port_buffer_size); @@ -253,7 +252,7 @@ LV2Node::instantiate() _ports->at(j) = port; } - delete [] def_values; + delete[] def_values; return true; } diff --git a/src/engine/PatchImpl.cpp b/src/engine/PatchImpl.cpp index 9f0ae701..b7de5103 100644 --- a/src/engine/PatchImpl.cpp +++ b/src/engine/PatchImpl.cpp @@ -439,7 +439,7 @@ PatchImpl::compile() const { assert(ThreadManager::current_thread_id() == THREAD_PRE_PROCESS); - //cerr << "*********** Building process order for " << path() << endl; + //cerr << "*********** Compiling " << path() << endl; CompiledPatch* const compiled_patch = new CompiledPatch();//_nodes.size()); diff --git a/src/engine/PortImpl.cpp b/src/engine/PortImpl.cpp index 1a1fd9c0..b8c77f43 100644 --- a/src/engine/PortImpl.cpp +++ b/src/engine/PortImpl.cpp @@ -57,7 +57,6 @@ PortImpl::PortImpl(NodeImpl* const node, assert(_poly > 0); allocate_buffers(); - clear_buffers(); if (node->parent() == NULL) _polyphonic = false; |