diff options
Diffstat (limited to 'src/libs/engine/JackAudioDriver.cpp')
-rw-r--r-- | src/libs/engine/JackAudioDriver.cpp | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/libs/engine/JackAudioDriver.cpp b/src/libs/engine/JackAudioDriver.cpp index 45269b7d..d148a549 100644 --- a/src/libs/engine/JackAudioDriver.cpp +++ b/src/libs/engine/JackAudioDriver.cpp @@ -297,14 +297,16 @@ JackAudioDriver::_process_cb(jack_nframes_t nframes) if (_engine.event_source()) _engine.event_source()->process(*_engine.post_processor(), nframes, start_of_last_cycle, start_of_current_cycle); - assert(_engine.midi_driver()); - _engine.midi_driver()->prepare_block(start_of_last_cycle, start_of_current_cycle); - // Set buffers of patch ports to Jack port buffers (zero-copy processing) for (List<JackAudioPort*>::iterator i = _ports.begin(); i != _ports.end(); ++i) { assert(*i); (*i)->prepare_buffer(nframes); } + + assert(_engine.midi_driver()); + //_engine.midi_driver()->prepare_block(start_of_last_cycle, start_of_current_cycle); + _engine.midi_driver()->prepare_block(start_of_current_cycle, start_of_current_cycle + nframes); + // Run root patch if (_root_patch) |