diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2009-07-21 03:23:57 +0000 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2009-07-21 03:23:57 +0000 |
commit | 20342cf2644fee7b04d6cfdc4fc686897837a01b (patch) | |
tree | cde2cbeb36402a003148c21aa92c1b27c5a418b5 /libs/ardour/route.cc | |
parent | 769e2c3feb2ce30056bfb8ec6eb7ec6a1d4324c6 (diff) |
first part of fixing up send/return metering ; make send-controlling faders work ; fixes from 2.X for key editor and untranslatable string; use standard name for surfaces lib version in wiimote wscript
git-svn-id: svn://localhost/ardour2/branches/3.0@5400 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs/ardour/route.cc')
-rw-r--r-- | libs/ardour/route.cc | 18 |
1 files changed, 15 insertions, 3 deletions
diff --git a/libs/ardour/route.cc b/libs/ardour/route.cc index 216c199041..26c0cc6616 100644 --- a/libs/ardour/route.cc +++ b/libs/ardour/route.cc @@ -695,9 +695,7 @@ Route::add_processor (boost::shared_ptr<Processor> processor, ProcessorList::ite } // XXX: do we want to emit the signal here ? change call order. - if (!boost::dynamic_pointer_cast<InternalSend>(processor)) { - processor->activate (); - } + processor->activate (); processor->ActiveChanged.connect (bind (mem_fun (_session, &Session::update_latency_compensation), false, false)); _output->set_user_latency (0); @@ -1344,6 +1342,7 @@ Route::configure_processors_unlocked (ProcessorStreams* err) // Ensure route outputs match last processor's outputs if (out != _output->n_ports ()) { + cerr << "For " << _name << " out/last mismatch - out = " << out << " vs. " << _output->n_ports() << endl; _output->ensure_io (out, false, this); } @@ -2649,7 +2648,20 @@ void Route::meter () { Glib::RWLock::ReaderLock rm (_processor_lock, Glib::TRY_LOCK); + _meter->meter (); + + for (ProcessorList::iterator i = _processors.begin(); i != _processors.end(); ++i) { + + boost::shared_ptr<Send> s; + boost::shared_ptr<Return> r; + + if ((s = boost::dynamic_pointer_cast<Send> (*i)) != 0) { + s->meter()->meter(); + } else if ((r = boost::dynamic_pointer_cast<Return> (*i)) != 0) { + r->meter()->meter (); + } + } } boost::shared_ptr<Panner> |