diff options
author | David Robillard <d@drobilla.net> | 2006-07-18 05:46:24 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2006-07-18 05:46:24 +0000 |
commit | 2dbd0cd81dff72aea42344188d20f7d7f6d20e1a (patch) | |
tree | a3af76b4164c75b19d3973c88b05591be9e9d67d /src/libs/engine/LV2Node.cpp | |
parent | 1d81360a04e0e5c0a57b8be1708e29a3f2bde848 (diff) | |
download | ingen-2dbd0cd81dff72aea42344188d20f7d7f6d20e1a.tar.gz ingen-2dbd0cd81dff72aea42344188d20f7d7f6d20e1a.tar.bz2 ingen-2dbd0cd81dff72aea42344188d20f7d7f6d20e1a.zip |
Removed globals (Om.h)
git-svn-id: http://svn.drobilla.net/lad/ingen@96 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/libs/engine/LV2Node.cpp')
-rw-r--r-- | src/libs/engine/LV2Node.cpp | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/src/libs/engine/LV2Node.cpp b/src/libs/engine/LV2Node.cpp index 15cb9567..59127915 100644 --- a/src/libs/engine/LV2Node.cpp +++ b/src/libs/engine/LV2Node.cpp @@ -36,7 +36,7 @@ LV2Node::LV2Node(const Plugin* plugin, const string& name, size_t poly, Patch* parent, - samplerate srate, + SampleRate srate, size_t buffer_size) : NodeBase(plugin, name, poly, parent, srate, buffer_size), _lv2_plugin(plugin->slv2_plugin()), @@ -101,10 +101,10 @@ LV2Node::instantiate() port_buffer_size = _buffer_size; if (is_input) { - port = new InputPort<sample>(this, port_name, j, _poly, DataType::FLOAT, port_buffer_size); + port = new InputPort<Sample>(this, port_name, j, _poly, DataType::FLOAT, port_buffer_size); _ports->at(j) = port; } else /* output */ { - port = new OutputPort<sample>(this, port_name, j, _poly, DataType::FLOAT, port_buffer_size); + port = new OutputPort<Sample>(this, port_name, j, _poly, DataType::FLOAT, port_buffer_size); _ports->at(j) = port; } @@ -115,9 +115,9 @@ LV2Node::instantiate() // Set default control val /*if (pi->is_control()) - ((TypedPort<sample>*)port)->set_value(pi->default_val(), 0); + ((TypedPort<Sample>*)port)->set_value(pi->default_val(), 0); else - ((TypedPort<sample>*)port)->set_value(0.0f, 0);*/ + ((TypedPort<Sample>*)port)->set_value(0.0f, 0);*/ } return true; } @@ -137,12 +137,12 @@ LV2Node::activate() { NodeBase::activate(); - TypedPort<sample>* port = NULL; + TypedPort<Sample>* port = NULL; for (size_t i=0; i < _poly; ++i) { for (unsigned long j=0; j < num_ports(); ++j) { - port = static_cast<TypedPort<sample>*>(_ports->at(j)); - set_port_buffer(i, j, ((TypedPort<sample>*)_ports->at(j))->buffer(i)->data()); + port = static_cast<TypedPort<Sample>*>(_ports->at(j)); + set_port_buffer(i, j, ((TypedPort<Sample>*)_ports->at(j))->buffer(i)->data()); if (port->type() == DataType::FLOAT && port->buffer_size() == 1) port->set_value(0.0f, 0); // FIXME else if (port->type() == DataType::FLOAT && port->buffer_size() > 1) @@ -164,7 +164,7 @@ LV2Node::deactivate() void -LV2Node::process(samplecount nframes) +LV2Node::process(SampleCount nframes) { NodeBase::process(nframes); // mixes down input ports for (size_t i=0; i < _poly; ++i) |