summaryrefslogtreecommitdiffstats
path: root/src/engine/InternalPlugin.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/engine/InternalPlugin.cpp')
-rw-r--r--src/engine/InternalPlugin.cpp9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/engine/InternalPlugin.cpp b/src/engine/InternalPlugin.cpp
index b312a24b..b4b0be8b 100644
--- a/src/engine/InternalPlugin.cpp
+++ b/src/engine/InternalPlugin.cpp
@@ -49,16 +49,15 @@ InternalPlugin::instantiate(BufferFactory& bufs,
{
assert(_type == Internal);
- SampleCount srate = engine.driver()->sample_rate();
- SampleCount buffer_size = engine.driver()->buffer_size();
+ const SampleCount srate = engine.driver()->sample_rate();
const string uri_str = uri().str();
if (uri_str == NS_INTERNALS "Note") {
- return new NoteNode(bufs, name, polyphonic, parent, srate, buffer_size);
+ return new NoteNode(bufs, name, polyphonic, parent, srate);
} else if (uri_str == NS_INTERNALS "Trigger") {
- return new TriggerNode(bufs, name, polyphonic, parent, srate, buffer_size);
+ return new TriggerNode(bufs, name, polyphonic, parent, srate);
} else if (uri_str == NS_INTERNALS "Controller") {
- return new ControllerNode(bufs, name, polyphonic, parent, srate, buffer_size);
+ return new ControllerNode(bufs, name, polyphonic, parent, srate);
} else {
return NULL;
}