diff options
author | Robin Gareus <robin@gareus.org> | 2019-09-29 18:24:54 +0200 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2019-09-29 18:25:14 +0200 |
commit | 0daee87803b39adb9e9fab7d81281c4dd6a6a43d (patch) | |
tree | 7eaf420ac18c4ca419ccf3cfd3c44dd29880659b /libs/ardour/route.cc | |
parent | c5b6b232a6ed251e256b13f4c0c3deed0792ab5b (diff) |
Ardour::IO is not latent by itself
Diffstat (limited to 'libs/ardour/route.cc')
-rw-r--r-- | libs/ardour/route.cc | 16 |
1 files changed, 1 insertions, 15 deletions
diff --git a/libs/ardour/route.cc b/libs/ardour/route.cc index 84bd5706d7..f897884384 100644 --- a/libs/ardour/route.cc +++ b/libs/ardour/route.cc @@ -1164,8 +1164,6 @@ Route::add_processors (const ProcessorList& others, boost::shared_ptr<Processor> } } } - - _output->unset_user_latency (); } reset_instrument_info (); @@ -1488,8 +1486,6 @@ Route::remove_processor (boost::shared_ptr<Processor> processor, ProcessorStream } else { ++i; } - - _output->unset_user_latency (); } if (!removed) { @@ -1617,7 +1613,6 @@ Route::replace_processor (boost::shared_ptr<Processor> old, boost::shared_ptr<Pr } sub->ActiveChanged.connect_same_thread (*this, boost::bind (&Session::update_latency_compensation, &_session, false)); - _output->unset_user_latency (); } reset_instrument_info (); @@ -1689,8 +1684,6 @@ Route::remove_processors (const ProcessorList& to_be_deleted, ProcessorStreams* return 0; } - _output->unset_user_latency (); - if (configure_processors_unlocked (err, &lm)) { pstate.restore (); /* we know this will work, because it worked before :) */ @@ -4113,7 +4106,7 @@ Route::update_signal_latency (bool apply_to_delayline) Glib::Threads::RWLock::ReaderLock lm (_processor_lock); samplecnt_t l_in = 0; - samplecnt_t l_out = _output->effective_latency (); + samplecnt_t l_out = 0; for (ProcessorList::reverse_iterator i = _processors.rbegin(); i != _processors.rend(); ++i) { if (boost::shared_ptr<LatentSend> snd = boost::dynamic_pointer_cast<LatentSend> (*i)) { snd->set_delay_in (l_out + _output->latency()); @@ -4182,13 +4175,6 @@ Route::update_signal_latency (bool apply_to_delayline) } void -Route::set_user_latency (samplecnt_t nframes) -{ - _output->set_user_latency (nframes); - _session.update_latency_compensation (); -} - -void Route::apply_latency_compensation () { if (_delayline) { |