13
0

add generic ::slaved() method to Route

This commit is contained in:
Paul Davis 2016-05-19 10:43:39 -04:00
parent c1592864e1
commit b2df48263b
2 changed files with 11 additions and 0 deletions

View File

@ -564,6 +564,7 @@ public:
pframes_t nframes, int declick);
bool slaved_to (boost::shared_ptr<VCA>) const;
bool slaved () const;
protected:
friend class Session;

View File

@ -5198,6 +5198,16 @@ Route::master_send_enable_controllable () const
#endif
}
bool
Route::slaved () const
{
if (!_gain_control) {
return false;
}
/* just test one particular control, not all of them */
return _gain_control->slaved ();
}
bool
Route::slaved_to (boost::shared_ptr<VCA> vca) const
{