diff options
author | David Robillard <d@drobilla.net> | 2007-09-20 20:54:31 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2007-09-20 20:54:31 +0000 |
commit | 615ceaaf519d0c42a9215c4835e1f7348f2e5dca (patch) | |
tree | 79093453605d8a1b2ff97dc07cff14324bc14f06 /src/libs/engine/Plugin.cpp | |
parent | a4625db3f26716fb7a34614c76582ab92b5212e8 (diff) | |
download | ingen-615ceaaf519d0c42a9215c4835e1f7348f2e5dca.tar.gz ingen-615ceaaf519d0c42a9215c4835e1f7348f2e5dca.tar.bz2 ingen-615ceaaf519d0c42a9215c4835e1f7348f2e5dca.zip |
Remove useless InternalNode class.
Percolate boolean polyphony down through Node class heirarchy (instead of integer).
git-svn-id: http://svn.drobilla.net/lad/ingen@742 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/libs/engine/Plugin.cpp')
-rw-r--r-- | src/libs/engine/Plugin.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/libs/engine/Plugin.cpp b/src/libs/engine/Plugin.cpp index 9e92f32c..11e59162 100644 --- a/src/libs/engine/Plugin.cpp +++ b/src/libs/engine/Plugin.cpp @@ -24,18 +24,18 @@ namespace Ingen { Node* -Plugin::instantiate(const string& name, uint32_t poly, Ingen::Patch* parent, SampleRate srate, size_t buffer_size) +Plugin::instantiate(const string& name, bool polyphonic, Ingen::Patch* parent, SampleRate srate, size_t buffer_size) { assert(_type == Internal); if (_uri == "ingen:note_node") { - return new MidiNoteNode(name, poly, parent, srate, buffer_size); + return new MidiNoteNode(name, polyphonic, parent, srate, buffer_size); } else if (_uri == "ingen:trigger_node") { - return new MidiTriggerNode(name, poly, parent, srate, buffer_size); + return new MidiTriggerNode(name, polyphonic, parent, srate, buffer_size); } else if (_uri == "ingen:control_node") { - return new MidiControlNode(name, poly, parent, srate, buffer_size); + return new MidiControlNode(name, polyphonic, parent, srate, buffer_size); } else if (_uri == "ingen:transport_node") { - return new TransportNode(name, poly, parent, srate, buffer_size); + return new TransportNode(name, polyphonic, parent, srate, buffer_size); } else { return NULL; } |