diff options
author | Robin Gareus <robin@gareus.org> | 2018-12-16 04:14:31 +0100 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2018-12-16 04:25:24 +0100 |
commit | 6a171eb8475a56f960e1bd9250bbbec35d29d869 (patch) | |
tree | 3705d97046f66823c86e14addd84d8becba7d5b3 /libs/ardour/plugin_insert.cc | |
parent | 6b1b72a247bf04c81292fc41af4f69c9b7f90379 (diff) |
Remove cruft: previous set_value_unchecked optimization
Diffstat (limited to 'libs/ardour/plugin_insert.cc')
-rw-r--r-- | libs/ardour/plugin_insert.cc | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/libs/ardour/plugin_insert.cc b/libs/ardour/plugin_insert.cc index d7ae4da711..a802612d04 100644 --- a/libs/ardour/plugin_insert.cc +++ b/libs/ardour/plugin_insert.cc @@ -879,27 +879,6 @@ PluginInsert::connect_and_run (BufferSet& bufs, samplepos_t start, samplepos_t e bufs.set_count(ChanCount::max(bufs.count(), _configured_out)); if (with_auto) { - -#if 0 - uint32_t n = 0; - - for (Controls::const_iterator li = controls().begin(); li != controls().end(); ++li, ++n) { - - /* boost::dynamic_pointer_cast<> has significant overhead, since we know that - * all controls are AutomationControl and their lists - if any - are AutomationList, - * we can use static_cast<>. This yields a speedup of 2.8/4.6 over to the - * previous code (measuerd with VeeSeeVSTRack 10k parameters, optimized build) */ - AutomationControl& c = static_cast<AutomationControl&> (*(li->second)); - boost::shared_ptr<const Evoral::ControlList> clist (c.list()); - if (clist && (static_cast<AutomationList const&> (*clist)).automation_playback ()) { - bool valid; - const float val = c.list()->rt_safe_eval (start, valid); - if (valid) { - c.set_value_unchecked(val); - } - } - } -#else boost::shared_ptr<ControlList> cl = _automated_controls.reader (); for (ControlList::const_iterator ci = cl->begin(); ci != cl->end(); ++ci) { AutomationControl& c = *(ci->get()); @@ -913,7 +892,6 @@ PluginInsert::connect_and_run (BufferSet& bufs, samplepos_t start, samplepos_t e } } } -#endif } /* Calculate if, and how many samples we need to collect for analysis */ |