From 344cdcbd4f2bc7a9203b4e98da2ac349581e521a Mon Sep 17 00:00:00 2001 From: David Robillard Date: Mon, 1 Oct 2007 03:23:30 +0000 Subject: Generic audio thread generated Event sending system. git-svn-id: http://svn.drobilla.net/lad/ingen@793 a436a847-0d15-0410-975c-d299462d15a1 --- src/libs/engine/ProcessContext.hpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'src/libs/engine/ProcessContext.hpp') diff --git a/src/libs/engine/ProcessContext.hpp b/src/libs/engine/ProcessContext.hpp index c85c9ff6..0f090b3b 100644 --- a/src/libs/engine/ProcessContext.hpp +++ b/src/libs/engine/ProcessContext.hpp @@ -38,7 +38,10 @@ namespace Ingen { class ProcessContext { public: - ProcessContext(Engine& engine) : _event_sink(engine, 1024) {} // FIXME: size? + ProcessContext(Engine& engine) + : _engine(engine) + , _event_sink(engine, 1024) // FIXME: size? + {} void set_time_slice(SampleCount nframes, FrameTime start, FrameTime end) { _nframes = nframes; @@ -46,6 +49,7 @@ public: _end = end; } + inline Engine& engine() const { return _engine; } inline SampleCount nframes() const { return _nframes; } inline FrameTime start() const { return _start; } inline FrameTime end() const { return _end; } @@ -53,6 +57,7 @@ public: inline EventSink& event_sink() { return _event_sink; } private: + Engine& _engine; ///< Engine we're running in SampleCount _nframes; ///< Number of actual time (Jack) frames this cycle FrameTime _start; ///< Start frame of this cycle, timeline relative FrameTime _end; ///< End frame of this cycle, timeline relative -- cgit v1.2.1