diff options
Diffstat (limited to 'src/engine/NodeFactory.cpp')
-rw-r--r-- | src/engine/NodeFactory.cpp | 25 |
1 files changed, 13 insertions, 12 deletions
diff --git a/src/engine/NodeFactory.cpp b/src/engine/NodeFactory.cpp index 8b2e93d9..c6dca64b 100644 --- a/src/engine/NodeFactory.cpp +++ b/src/engine/NodeFactory.cpp @@ -24,14 +24,14 @@ #include "redlandmm/World.hpp" #include "raul/Atom.hpp" #include "module/World.hpp" -#include "NodeFactory.hpp" -#include "ThreadManager.hpp" #include "internals/Note.hpp" #include "internals/Trigger.hpp" #include "internals/Controller.hpp" -#include "internals/Transport.hpp" -#include "PatchImpl.hpp" +#include "Engine.hpp" #include "InternalPlugin.hpp" +#include "NodeFactory.hpp" +#include "PatchImpl.hpp" +#include "ThreadManager.hpp" #ifdef HAVE_LADSPA_H #include "LADSPANode.hpp" #include "LADSPAPlugin.hpp" @@ -137,21 +137,22 @@ NodeFactory::load_plugins() void NodeFactory::load_internal_plugins() { - // This is a touch gross... + // FIXME: This is a touch gross... + + const SampleRate r = 48000; + const size_t s = sizeof(Sample); - PatchImpl* parent = new PatchImpl(*_world->local_engine, "dummy", 1, NULL, 1, 1, 1); + Engine& engine = *_world->local_engine; + PatchImpl* parent = new PatchImpl(engine, "dummy", 1, NULL, r, s, 1); NodeImpl* n = NULL; - n = new NoteNode("foo", 1, parent, 1, 1); - _plugins.insert(make_pair(n->plugin_impl()->uri(), n->plugin_impl())); - delete n; - n = new TriggerNode("foo", 1, parent, 1, 1); + n = new NoteNode(*engine.buffer_factory(), "foo", 1, parent, r, s); _plugins.insert(make_pair(n->plugin_impl()->uri(), n->plugin_impl())); delete n; - n = new ControllerNode("foo", 1, parent, 1, 1); + n = new TriggerNode(*engine.buffer_factory(), "foo", 1, parent, r, s); _plugins.insert(make_pair(n->plugin_impl()->uri(), n->plugin_impl())); delete n; - n = new TransportNode("foo", 1, parent, 1, 1); + n = new ControllerNode(*engine.buffer_factory(), "foo", 1, parent, r, s); _plugins.insert(make_pair(n->plugin_impl()->uri(), n->plugin_impl())); delete n; |