diff options
author | Robin Gareus <robin@gareus.org> | 2014-01-17 15:59:51 +0100 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2014-01-17 16:00:17 +0100 |
commit | 0506f85e9d9e137321d60e103e22507756e01bf3 (patch) | |
tree | 782f837f673367e070e081d32c231e934dcd93d7 /libs/ardour/route.cc | |
parent | 17309c41c3afde42af9cb5c11031bbfd1409cf89 (diff) |
remove cruft
Diffstat (limited to 'libs/ardour/route.cc')
-rw-r--r-- | libs/ardour/route.cc | 57 |
1 files changed, 0 insertions, 57 deletions
diff --git a/libs/ardour/route.cc b/libs/ardour/route.cc index 046bf7998e..a9122ab673 100644 --- a/libs/ardour/route.cc +++ b/libs/ardour/route.cc @@ -1568,63 +1568,6 @@ Route::remove_processors (const ProcessorList& to_be_deleted, ProcessorStreams* return 0; } -#if 0 -/* currently unused (again) -- but will come in handy soon (again) - * once there is an option to link route + delivery panner settings - */ -void -Route::set_custom_panner_uri (std::string const panner_uri) -{ - if (_in_configure_processors) { - DEBUG_TRACE (DEBUG::Panning, string_compose (_("Route::set_custom_panner_uri '%1' -- called while in_configure_processors\n"), name())); - return; - } - - if (!_main_outs->panner_shell()->set_user_selected_panner_uri(panner_uri)) { - DEBUG_TRACE (DEBUG::Panning, string_compose (_("Route::set_custom_panner_uri '%1 '%2' -- no change needed\n"), name(), panner_uri)); - /* no change needed */ - return; - } - - DEBUG_TRACE (DEBUG::Panning, string_compose (_("Route::set_custom_panner_uri '%1 '%2' -- reconfigure I/O\n"), name(), panner_uri)); - - /* reconfigure I/O -- re-initialize panner modules */ - { - Glib::Threads::Mutex::Lock lx (AudioEngine::instance()->process_lock ()); - Glib::Threads::RWLock::WriterLock lm (_processor_lock); - - for (ProcessorList::iterator p = _processors.begin(); p != _processors.end(); ++p) { - boost::shared_ptr<Delivery> dl; - boost::shared_ptr<Panner> panner; - if ((dl = boost::dynamic_pointer_cast<Delivery> (*p)) == 0) { - continue; - } - if (!dl->panner_shell()) { - continue; - } - if (!(panner = dl->panner_shell()->panner())) { - continue; - } - /* _main_outs has already been set before the loop. - * Ignore the return status here. It need reconfiguration */ - if (dl->panner_shell() != _main_outs->panner_shell()) { - if (!dl->panner_shell()->set_user_selected_panner_uri(panner_uri)) { - continue; - } - } - - ChanCount in = panner->in(); - ChanCount out = panner->out(); - dl->panner_shell()->configure_io(in, out); - dl->panner_shell()->pannable()->set_panner(dl->panner_shell()->panner()); - } - } - - processors_changed (RouteProcessorChange ()); /* EMIT SIGNAL */ - _session.set_dirty (); -} -#endif - void Route::reset_instrument_info () { |