summaryrefslogtreecommitdiffstats
path: root/src/libs/engine/ProcessContext.hpp
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2007-10-01 03:23:30 +0000
committerDavid Robillard <d@drobilla.net>2007-10-01 03:23:30 +0000
commit344cdcbd4f2bc7a9203b4e98da2ac349581e521a (patch)
tree1d91bb47256094b8af4b3afe8a0e5514f0032d75 /src/libs/engine/ProcessContext.hpp
parent8ebd59309b153e7337f2e6668b7e2cb4301cc34a (diff)
downloadingen-344cdcbd4f2bc7a9203b4e98da2ac349581e521a.tar.gz
ingen-344cdcbd4f2bc7a9203b4e98da2ac349581e521a.tar.bz2
ingen-344cdcbd4f2bc7a9203b4e98da2ac349581e521a.zip
Generic audio thread generated Event sending system.
git-svn-id: http://svn.drobilla.net/lad/ingen@793 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/libs/engine/ProcessContext.hpp')
-rw-r--r--src/libs/engine/ProcessContext.hpp7
1 files changed, 6 insertions, 1 deletions
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