diff options
author | Robin Gareus <robin@gareus.org> | 2016-06-25 02:23:56 +0200 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2016-06-25 02:23:56 +0200 |
commit | e9a8ccc7e2826d8fe91eff34ee8a0683a7f7aac6 (patch) | |
tree | 50b54d5b0c31caf97d80a739c182ad5a101ecec5 /libs/ardour/port_insert.cc | |
parent | 6a12022ccf96261d61dce06b8da6c3116fb289a1 (diff) |
major internal plugin & processor API change:
Pass current (latency compensated) cycle times to plugin.
This fixes time-reporting to plugins and also fixes automation
and when bouncing (the session->transport* is not valid) etc.
Diffstat (limited to 'libs/ardour/port_insert.cc')
-rw-r--r-- | libs/ardour/port_insert.cc | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/libs/ardour/port_insert.cc b/libs/ardour/port_insert.cc index 8ec5ead530..d38279c08c 100644 --- a/libs/ardour/port_insert.cc +++ b/libs/ardour/port_insert.cc @@ -107,7 +107,7 @@ PortInsert::latency() const } void -PortInsert::run (BufferSet& bufs, framepos_t start_frame, framepos_t end_frame, pframes_t nframes, bool) +PortInsert::run (BufferSet& bufs, framepos_t start_frame, framepos_t end_frame, double speed, pframes_t nframes, bool) { if (_output->n_ports().n_total() == 0) { return; @@ -134,7 +134,7 @@ PortInsert::run (BufferSet& bufs, framepos_t start_frame, framepos_t end_frame, hear the remnants of whatever MTDM pumped into the pipeline. */ - silence (nframes); + silence (nframes, start_frame); if (_latency_flush_frames > nframes) { _latency_flush_frames -= nframes; @@ -147,11 +147,11 @@ PortInsert::run (BufferSet& bufs, framepos_t start_frame, framepos_t end_frame, if (!_active && !_pending_active) { /* deliver silence */ - silence (nframes); + silence (nframes, start_frame); goto out; } - _out->run (bufs, start_frame, end_frame, nframes, true); + _out->run (bufs, start_frame, end_frame, speed, nframes, true); _input->collect_input (bufs, nframes, ChanCount::ZERO); out: |