From 7767a8405496d3f2eba6594bfc1d57f25f8907ff Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sat, 17 Nov 2012 19:25:53 +0000 Subject: Set plugin<=>UI queue size based on LV2 options. git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@4822 a436a847-0d15-0410-975c-d299462d15a1 --- src/server/JackDriver.cpp | 2 -- src/server/ingen_lv2.cpp | 11 +++++++---- 2 files changed, 7 insertions(+), 6 deletions(-) (limited to 'src') diff --git a/src/server/JackDriver.cpp b/src/server/JackDriver.cpp index c266861e..eb1c0894 100644 --- a/src/server/JackDriver.cpp +++ b/src/server/JackDriver.cpp @@ -357,8 +357,6 @@ JackDriver::append_time_events(ProcessContext& context, _old_rolling = rolling; _old_bpm = pos->beats_per_minute; - std::cerr << "POS CHANGED" << endl; - // Build an LV2 position object to append to the buffer uint8_t pos_buf[256]; LV2_Atom_Forge_Frame frame; diff --git a/src/server/ingen_lv2.cpp b/src/server/ingen_lv2.cpp index aaa0bcb2..dc274a32 100644 --- a/src/server/ingen_lv2.cpp +++ b/src/server/ingen_lv2.cpp @@ -32,15 +32,16 @@ #include "lv2/lv2plug.in/ns/ext/urid/urid.h" #include "lv2/lv2plug.in/ns/lv2core/lv2.h" -#include "ingen/Interface.hpp" -#include "ingen/Log.hpp" -#include "ingen/serialisation/Parser.hpp" -#include "ingen/serialisation/Serialiser.hpp" #include "ingen/AtomReader.hpp" #include "ingen/AtomWriter.hpp" +#include "ingen/Configuration.hpp" +#include "ingen/Interface.hpp" +#include "ingen/Log.hpp" #include "ingen/Store.hpp" #include "ingen/World.hpp" #include "ingen/runtime_paths.hpp" +#include "ingen/serialisation/Parser.hpp" +#include "ingen/serialisation/Serialiser.hpp" #include "raul/Semaphore.hpp" #include "raul/SharedPtr.hpp" #include "raul/Thread.hpp" @@ -550,6 +551,8 @@ ingen_instantiate(const LV2_Descriptor* descriptor, plugin->world->log().info( Raul::fmt("Block: %1% frames, Sequence: %2% bytes\n") % block_length % seq_size); + plugin->world->conf().set("queue-size", + std::max(block_length, seq_size) * 4); SharedPtr engine(new Server::Engine(plugin->world)); plugin->world->set_engine(engine); -- cgit v1.2.1