From 1b38b8bc4e4e5ca9250cca15bb547ce926b0592e Mon Sep 17 00:00:00 2001 From: David Robillard Date: Thu, 26 Jul 2012 16:01:50 +0000 Subject: Increase notification ring size. git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@4559 a436a847-0d15-0410-975c-d299462d15a1 --- src/server/Context.cpp | 11 +++++++++++ src/server/Context.hpp | 11 +---------- 2 files changed, 12 insertions(+), 10 deletions(-) (limited to 'src') diff --git a/src/server/Context.cpp b/src/server/Context.cpp index 86feaf67..0f7555a4 100644 --- a/src/server/Context.cpp +++ b/src/server/Context.cpp @@ -42,6 +42,17 @@ struct Notification Raul::Atom::TypeID type; }; +Context::Context(Engine& engine, size_t event_sink_size, ID id) + : _engine(engine) + , _id(id) + , _event_sink(event_sink_size * sizeof(Notification)) + , _start(0) + , _end(0) + , _nframes(0) + , _offset(0) + , _realtime(true) +{} + void Context::notify(LV2_URID key, FrameTime time, diff --git a/src/server/Context.hpp b/src/server/Context.hpp index 7bcfb136..bd740504 100644 --- a/src/server/Context.hpp +++ b/src/server/Context.hpp @@ -49,16 +49,7 @@ public: MESSAGE }; - Context(Engine& engine, size_t event_sink_size, ID id) - : _engine(engine) - , _id(id) - , _event_sink(event_sink_size) - , _start(0) - , _end(0) - , _nframes(0) - , _offset(0) - , _realtime(true) - {} + Context(Engine& engine, size_t event_sink_size, ID id); virtual ~Context() {} -- cgit v1.2.1