summaryrefslogtreecommitdiffstats
path: root/src/libs/engine/ProcessContext.hpp
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2008-09-29 18:19:17 +0000
committerDavid Robillard <d@drobilla.net>2008-09-29 18:19:17 +0000
commit3168e388d0a951cf665696b970eb5bb354fbb740 (patch)
treeaa2eb0c1887d2d315085944607b66ec8470a4a65 /src/libs/engine/ProcessContext.hpp
parent95b1e3fe89477fbb6710d30ac183fab7d8238c14 (diff)
downloadingen-3168e388d0a951cf665696b970eb5bb354fbb740.tar.gz
ingen-3168e388d0a951cf665696b970eb5bb354fbb740.tar.bz2
ingen-3168e388d0a951cf665696b970eb5bb354fbb740.zip
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
Diffstat (limited to 'src/libs/engine/ProcessContext.hpp')
-rw-r--r--src/libs/engine/ProcessContext.hpp7
1 files changed, 3 insertions, 4 deletions
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