diff options
author | David Robillard <d@drobilla.net> | 2010-02-24 23:12:34 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2010-02-24 23:12:34 +0000 |
commit | e853d3dfcf450f6160e19f20b6b67e251c906169 (patch) | |
tree | 6b62d2d1a7f3a047f141e58caee4e5e71ac1f4de /src/engine/ProcessContext.hpp | |
parent | 784dc03a78dc338b45111ebdca45371dfaaa6fa9 (diff) | |
download | ingen-e853d3dfcf450f6160e19f20b6b67e251c906169.tar.gz ingen-e853d3dfcf450f6160e19f20b6b67e251c906169.tar.bz2 ingen-e853d3dfcf450f6160e19f20b6b67e251c906169.zip |
Add new Delay internal.
Preliminary work towards split cycles.
git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@2485 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/engine/ProcessContext.hpp')
-rw-r--r-- | src/engine/ProcessContext.hpp | 13 |
1 files changed, 2 insertions, 11 deletions
diff --git a/src/engine/ProcessContext.hpp b/src/engine/ProcessContext.hpp index 068b0c85..fa8e3910 100644 --- a/src/engine/ProcessContext.hpp +++ b/src/engine/ProcessContext.hpp @@ -42,22 +42,13 @@ class ProcessContext : public Context public: ProcessContext(Engine& engine) : Context(engine, AUDIO) - , _nframes(0) - , _end(0) {} - void set_time_slice(SampleCount nframes, FrameTime start, FrameTime end) { - locate(start); + void set_time_slice(SampleCount nframes, SampleCount offset, FrameTime start, FrameTime end) { + locate(start, offset); _nframes = nframes; _end = end; } - - inline SampleCount nframes() const { return _nframes; } - inline FrameTime end() const { return _end; } - -private: - SampleCount _nframes; ///< Length of this cycle in frames - FrameTime _end; ///< End frame of this cycle, timeline relative }; |