diff options
author | David Robillard <d@drobilla.net> | 2017-02-17 19:23:12 +0100 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2017-02-18 19:38:13 +0100 |
commit | 2754f232613dca72c2f964d092569faf1a176c80 (patch) | |
tree | 6a8966ca56acd74a42c691be5d900d221ceb348d /src/server/LV2Block.cpp | |
parent | fa6bb9afe8fcf2b0b8348495b9c4e1d6425136f0 (diff) | |
download | ingen-2754f232613dca72c2f964d092569faf1a176c80.tar.gz ingen-2754f232613dca72c2f964d092569faf1a176c80.tar.bz2 ingen-2754f232613dca72c2f964d092569faf1a176c80.zip |
Reduce Driver coupling
Diffstat (limited to 'src/server/LV2Block.cpp')
-rw-r--r-- | src/server/LV2Block.cpp | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/server/LV2Block.cpp b/src/server/LV2Block.cpp index ab2582d1..82e5f229 100644 --- a/src/server/LV2Block.cpp +++ b/src/server/LV2Block.cpp @@ -36,7 +36,6 @@ #include "ingen/URIs.hpp" #include "Buffer.hpp" -#include "Driver.hpp" #include "Engine.hpp" #include "GraphImpl.hpp" #include "InputPort.hpp" @@ -170,7 +169,7 @@ LV2Block::prepare_poly(BufferFactory& bufs, uint32_t poly) if (_polyphony == poly) return true; - const SampleRate rate = bufs.engine().driver()->sample_rate(); + const SampleRate rate = bufs.engine().sample_rate(); assert(!_prepared_instances); _prepared_instances = bufs.maid().make_managed<Instances>( poly, *_instances, SPtr<Instance>()); @@ -421,7 +420,7 @@ LV2Block::instantiate(BufferFactory& bufs, const LilvState* state) _features = world->lv2_features().lv2_features(world, this); // Actually create plugin instances and port buffers. - const SampleRate rate = bufs.engine().driver()->sample_rate(); + const SampleRate rate = bufs.engine().sample_rate(); _instances = bufs.maid().make_managed<Instances>( _polyphony, SPtr<Instance>()); for (uint32_t i = 0; i < _polyphony; ++i) { @@ -493,7 +492,7 @@ LV2Block::duplicate(Engine& engine, const Raul::Symbol& symbol, GraphImpl* parent) { - const SampleRate rate = engine.driver()->sample_rate(); + const SampleRate rate = engine.sample_rate(); // Get current state LilvState* state = lilv_state_new_from_instance( |