summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/server/Context.cpp11
-rw-r--r--src/server/Context.hpp11
2 files changed, 12 insertions, 10 deletions
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() {}