summaryrefslogtreecommitdiffstats
path: root/src/libs/engine/LADSPAPlugin.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/libs/engine/LADSPAPlugin.cpp')
-rw-r--r--src/libs/engine/LADSPAPlugin.cpp8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/libs/engine/LADSPAPlugin.cpp b/src/libs/engine/LADSPAPlugin.cpp
index a43baa9a..4a0b5c14 100644
--- a/src/libs/engine/LADSPAPlugin.cpp
+++ b/src/libs/engine/LADSPAPlugin.cpp
@@ -21,6 +21,8 @@
#include "LADSPAPlugin.hpp"
#include "LADSPANode.hpp"
#include "NodeImpl.hpp"
+#include "Engine.hpp"
+#include "AudioDriver.hpp"
using namespace std;
@@ -31,11 +33,13 @@ NodeImpl*
LADSPAPlugin::instantiate(const string& name,
bool polyphonic,
Ingen::PatchImpl* parent,
- SampleRate srate,
- size_t buffer_size)
+ Engine& engine)
{
assert(_id != 0);
+ SampleCount srate = engine.audio_driver()->sample_rate();
+ SampleCount buffer_size = engine.audio_driver()->buffer_size();
+
LADSPA_Descriptor_Function df = NULL;
LADSPANode* n = NULL;