diff options
author | David Robillard <d@drobilla.net> | 2009-11-16 00:30:35 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2009-11-16 00:30:35 +0000 |
commit | 3d89115a67a9c947a28539ffdd2399808a53279b (patch) | |
tree | 826b900de3979eed9c31aae0d3ac560d39b53460 /src/engine/InternalPlugin.cpp | |
parent | 597fa9212f27d2448c0cdd20fbf616928c662cc1 (diff) | |
download | ingen-3d89115a67a9c947a28539ffdd2399808a53279b.tar.gz ingen-3d89115a67a9c947a28539ffdd2399808a53279b.tar.bz2 ingen-3d89115a67a9c947a28539ffdd2399808a53279b.zip |
Rework objects extension to have "value ports" and "message ports".
Make audio and control buffers in ingen actually object buffers (towards interop).
Overhaul the hell out of ingen buffer and mixing stuff.
git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@2266 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/engine/InternalPlugin.cpp')
-rw-r--r-- | src/engine/InternalPlugin.cpp | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/src/engine/InternalPlugin.cpp b/src/engine/InternalPlugin.cpp index 99061e6c..a3d22e10 100644 --- a/src/engine/InternalPlugin.cpp +++ b/src/engine/InternalPlugin.cpp @@ -20,7 +20,6 @@ #include "internals/Note.hpp" #include "internals/Trigger.hpp" #include "internals/Controller.hpp" -#include "internals/Transport.hpp" #include "Engine.hpp" #include "AudioDriver.hpp" @@ -40,7 +39,8 @@ InternalPlugin::InternalPlugin(const std::string& uri, const std::string& symbol NodeImpl* -InternalPlugin::instantiate(const string& name, +InternalPlugin::instantiate(BufferFactory& bufs, + const string& name, bool polyphonic, Ingen::PatchImpl* parent, Engine& engine) @@ -52,13 +52,11 @@ InternalPlugin::instantiate(const string& name, const string uri_str = uri().str(); if (uri_str == NS_INTERNALS "Note") { - return new NoteNode(name, polyphonic, parent, srate, buffer_size); + return new NoteNode(bufs, name, polyphonic, parent, srate, buffer_size); } else if (uri_str == NS_INTERNALS "Trigger") { - return new TriggerNode(name, polyphonic, parent, srate, buffer_size); + return new TriggerNode(bufs, name, polyphonic, parent, srate, buffer_size); } else if (uri_str == NS_INTERNALS "Controller") { - return new ControllerNode(name, polyphonic, parent, srate, buffer_size); - } else if (uri_str == NS_INTERNALS "Transport") { - return new TransportNode(name, polyphonic, parent, srate, buffer_size); + return new ControllerNode(bufs, name, polyphonic, parent, srate, buffer_size); } else { return NULL; } |