diff options
author | Carl Hetherington <carl@carlh.net> | 2011-11-21 16:34:05 +0000 |
---|---|---|
committer | Carl Hetherington <carl@carlh.net> | 2011-11-21 16:34:05 +0000 |
commit | 6e2bd18905a472230278e89de1a3e93b2d49821a (patch) | |
tree | 91da326c6d8e5747acd904f59992fc4c30b2c049 /libs/ardour/route.cc | |
parent | aef0319864964493def21510fa4a943bf26b8792 (diff) |
Re-add code to support do-not-record-plugins (#4487).
git-svn-id: svn://localhost/ardour2/branches/3.0@10731 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs/ardour/route.cc')
-rw-r--r-- | libs/ardour/route.cc | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/libs/ardour/route.cc b/libs/ardour/route.cc index 58589acfee..adeda63972 100644 --- a/libs/ardour/route.cc +++ b/libs/ardour/route.cc @@ -3908,3 +3908,16 @@ Route::maybe_note_meter_position () } } } + +boost::shared_ptr<Processor> +Route::processor_by_id (PBD::ID id) const +{ + Glib::RWLock::ReaderLock lm (_processor_lock); + for (ProcessorList::const_iterator i = _processors.begin(); i != _processors.end(); ++i) { + if ((*i)->id() == id) { + return *i; + } + } + + return boost::shared_ptr<Processor> (); +} |