summaryrefslogtreecommitdiffstats
path: root/src/engine/ProcessContext.hpp
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2009-11-14 20:44:40 +0000
committerDavid Robillard <d@drobilla.net>2009-11-14 20:44:40 +0000
commit6ae2018e81e7e81e4906e62dc6224ad34298d9c2 (patch)
tree11286438977c4f975b5148dc93b5f4dfafabdbdc /src/engine/ProcessContext.hpp
parentcfec427867f42d7aa7bea6dfbb0736b5ce99e9e2 (diff)
downloadingen-6ae2018e81e7e81e4906e62dc6224ad34298d9c2.tar.gz
ingen-6ae2018e81e7e81e4906e62dc6224ad34298d9c2.tar.bz2
ingen-6ae2018e81e7e81e4906e62dc6224ad34298d9c2.zip
Object extension.
Port resize extension. Sensible extension(s) implementation design for Ingen. Replace string port extension support in Ingen with Object port extension. Implement port resize extension in Ingen. Some test plugins for this stuff. git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@2260 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/engine/ProcessContext.hpp')
-rw-r--r--src/engine/ProcessContext.hpp18
1 files changed, 7 insertions, 11 deletions
diff --git a/src/engine/ProcessContext.hpp b/src/engine/ProcessContext.hpp
index a5c8149a..743b72c4 100644
--- a/src/engine/ProcessContext.hpp
+++ b/src/engine/ProcessContext.hpp
@@ -42,26 +42,22 @@ class ProcessContext : public Context
public:
ProcessContext(Engine& engine)
: Context(engine, AUDIO)
- , _event_sink(engine, 1024) // FIXME: size?
+ , _nframes(0)
+ , _end(0)
{}
void set_time_slice(SampleCount nframes, FrameTime start, FrameTime end) {
+ locate(start);
_nframes = nframes;
- _start = start;
_end = end;
}
- inline SampleCount nframes() const { return _nframes; }
- inline FrameTime start() const { return _start; }
- inline FrameTime end() const { return _end; }
- inline const EventSink& event_sink() const { return _event_sink; }
- inline EventSink& event_sink() { return _event_sink; }
+ inline SampleCount nframes()const { return _nframes; }
+ inline FrameTime end() const { return _end; }
private:
- 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
- EventSink _event_sink; ///< Sink for events generated in the audio thread
+ SampleCount _nframes; ///< Length of this cycle in frames
+ FrameTime _end; ///< End frame of this cycle, timeline relative
};