From 3d93d33c8a1245351473a58229055b40fce86db1 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Mon, 25 Mar 2013 02:12:09 +0000 Subject: Explicitly support bufsz block length features (fix #893). git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@5102 a436a847-0d15-0410-975c-d299462d15a1 --- src/server/Engine.cpp | 11 +++++++++++ src/server/Worker.cpp | 1 - 2 files changed, 11 insertions(+), 1 deletion(-) (limited to 'src/server') diff --git a/src/server/Engine.cpp b/src/server/Engine.cpp index 2e7a942a..755e0d65 100644 --- a/src/server/Engine.cpp +++ b/src/server/Engine.cpp @@ -16,6 +16,8 @@ #include +#include "lv2/lv2plug.in/ns/ext/buf-size/buf-size.h" + #include "events/CreatePort.hpp" #include "ingen/Configuration.hpp" #include "ingen/Log.hpp" @@ -77,6 +79,15 @@ Engine::Engine(Ingen::World* world) _world->lv2_features().add_feature(_worker->schedule_feature()); _world->lv2_features().add_feature(_options); + _world->lv2_features().add_feature( + SPtr( + new LV2Features::EmptyFeature(LV2_BUF_SIZE__powerOf2BlockLength))); + _world->lv2_features().add_feature( + SPtr( + new LV2Features::EmptyFeature(LV2_BUF_SIZE__fixedBlockLength))); + _world->lv2_features().add_feature( + SPtr( + new LV2Features::EmptyFeature(LV2_BUF_SIZE__boundedBlockLength))); } Engine::~Engine() diff --git a/src/server/Worker.cpp b/src/server/Worker.cpp index ce7ba833..d5bb0785 100644 --- a/src/server/Worker.cpp +++ b/src/server/Worker.cpp @@ -97,7 +97,6 @@ Worker::Schedule::feature(World* world, Node* n) f->data = data; return SPtr(f, &delete_feature); - } Worker::Worker(Log& log, uint32_t buffer_size) -- cgit v1.2.1