From 3168e388d0a951cf665696b970eb5bb354fbb740 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Mon, 29 Sep 2008 18:19:17 +0000 Subject: More context extension work. Clicking the input port on bang in ingen while in edit mode will now send a message to the bang plugin in the message context. git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@1537 a436a847-0d15-0410-975c-d299462d15a1 --- src/libs/engine/ProcessContext.hpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'src/libs/engine/ProcessContext.hpp') diff --git a/src/libs/engine/ProcessContext.hpp b/src/libs/engine/ProcessContext.hpp index 0f090b3b..57677126 100644 --- a/src/libs/engine/ProcessContext.hpp +++ b/src/libs/engine/ProcessContext.hpp @@ -19,6 +19,7 @@ #define PROCESSCONTEXT_H #include "EventSink.hpp" +#include "Context.hpp" namespace Ingen { @@ -35,11 +36,11 @@ namespace Ingen { * * \ingroup engine */ -class ProcessContext +class ProcessContext : public Context { public: ProcessContext(Engine& engine) - : _engine(engine) + : Context(engine, AUDIO) , _event_sink(engine, 1024) // FIXME: size? {} @@ -49,7 +50,6 @@ 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; } @@ -57,7 +57,6 @@ 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