summaryrefslogtreecommitdiffstats
path: root/src/engine/JackDriver.cpp
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2010-02-24 23:54:37 +0000
committerDavid Robillard <d@drobilla.net>2010-02-24 23:54:37 +0000
commitc35f3f773e68c0e787a8436393475d3269c421c9 (patch)
treefb3847a90d94394f7ff22b3fad1ccb5c0f0da546 /src/engine/JackDriver.cpp
parent313af960a340f8539214d53252e3186fe3dc8f40 (diff)
downloadingen-c35f3f773e68c0e787a8436393475d3269c421c9.tar.gz
ingen-c35f3f773e68c0e787a8436393475d3269c421c9.tar.bz2
ingen-c35f3f773e68c0e787a8436393475d3269c421c9.zip
Tidy up Context and ProcessContext interfaces (ProcessContext only lives on as a useful type).
git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@2487 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/engine/JackDriver.cpp')
-rw-r--r--src/engine/JackDriver.cpp10
1 files changed, 3 insertions, 7 deletions
diff --git a/src/engine/JackDriver.cpp b/src/engine/JackDriver.cpp
index 78b14121..a604aeae 100644
--- a/src/engine/JackDriver.cpp
+++ b/src/engine/JackDriver.cpp
@@ -413,15 +413,14 @@ JackDriver::_process_cb(jack_nframes_t nframes)
// Note that Jack can not call this function for a cycle, if overloaded
const jack_nframes_t start_of_current_cycle = jack_last_frame_time(_client);
- const jack_nframes_t end_of_current_cycle = start_of_current_cycle + nframes;
_transport_state = jack_transport_query(_client, &_position);
- _process_context.set_time_slice(nframes, 0, start_of_current_cycle, end_of_current_cycle);
+ _process_context.locate(start_of_current_cycle, nframes, 0);
for (Engine::ProcessSlaves::iterator i = _engine.process_slaves().begin();
i != _engine.process_slaves().end(); ++i) {
- (*i)->context().set_time_slice(nframes, 0, start_of_current_cycle, end_of_current_cycle);
+ (*i)->context().locate(start_of_current_cycle, nframes, 0);
}
// Read input
@@ -442,15 +441,12 @@ JackDriver::_process_cb(jack_nframes_t nframes)
if (_root_patch) {
_root_patch->process(_process_context);
#if 0
- const FrameTime cycle_start = _process_context.start();
static const SampleCount control_block_size = nframes / 2;
for (jack_nframes_t i = 0; i < nframes; i += control_block_size) {
const SampleCount block_size = (i + control_block_size < nframes)
? control_block_size
: nframes - i;
- _process_context.set_time_slice(block_size, i,
- cycle_start + i,
- cycle_start + i + block_size);
+ _process_context.locate(start_of_current_cycle + i, block_size, i);
_root_patch->process(_process_context);
}
#endif