summaryrefslogtreecommitdiffstats
path: root/src/server/Engine.cpp
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2013-10-29 16:27:43 +0000
committerDavid Robillard <d@drobilla.net>2013-10-29 16:27:43 +0000
commitaeadaef403c5b8ef786d994c8644af255c2097c9 (patch)
treeb1df03ac36c18c5c64225b295fe2a58aef8bb956 /src/server/Engine.cpp
parent9b74155f7b22cf1525d19cbad138b147aca1c124 (diff)
downloadingen-aeadaef403c5b8ef786d994c8644af255c2097c9.tar.gz
ingen-aeadaef403c5b8ef786d994c8644af255c2097c9.tar.bz2
ingen-aeadaef403c5b8ef786d994c8644af255c2097c9.zip
Remove engine dependency from LV2Options.
git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@5163 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/server/Engine.cpp')
-rw-r--r--src/server/Engine.cpp8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/server/Engine.cpp b/src/server/Engine.cpp
index 1dbd73bb..a7d77736 100644
--- a/src/server/Engine.cpp
+++ b/src/server/Engine.cpp
@@ -1,6 +1,6 @@
/*
This file is part of Ingen.
- Copyright 2007-2012 David Robillard <http://drobilla.net/>
+ Copyright 2007-2013 David Robillard <http://drobilla.net/>
Ingen is free software: you can redistribute it and/or modify it under the
terms of the GNU Affero General Public License as published by the Free
@@ -60,7 +60,7 @@ Engine::Engine(Ingen::World* world)
, _control_bindings(NULL)
, _event_writer(new EventWriter(*this))
, _maid(new Raul::Maid())
- , _options(new LV2Options(*this))
+ , _options(new LV2Options(world->uris()))
, _pre_processor(new PreProcessor())
, _post_processor(new PostProcessor(*this))
, _root_graph(NULL)
@@ -202,7 +202,9 @@ Engine::activate()
ThreadManager::single_threaded = true;
_buffer_factory->set_block_length(_driver->block_length());
- _options->set(*this);
+ _options->set(driver()->sample_rate(),
+ driver()->block_length(),
+ buffer_factory()->default_size(_world->uris().atom_Sequence));
const Ingen::URIs& uris = world()->uris();
Forge& forge = world()->forge();