add generic ::slaved() method to Route
This commit is contained in:
parent
c1592864e1
commit
b2df48263b
@ -564,6 +564,7 @@ public:
|
|||||||
pframes_t nframes, int declick);
|
pframes_t nframes, int declick);
|
||||||
|
|
||||||
bool slaved_to (boost::shared_ptr<VCA>) const;
|
bool slaved_to (boost::shared_ptr<VCA>) const;
|
||||||
|
bool slaved () const;
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
friend class Session;
|
friend class Session;
|
||||||
|
@ -5198,6 +5198,16 @@ Route::master_send_enable_controllable () const
|
|||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
bool
|
||||||
|
Route::slaved () const
|
||||||
|
{
|
||||||
|
if (!_gain_control) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
/* just test one particular control, not all of them */
|
||||||
|
return _gain_control->slaved ();
|
||||||
|
}
|
||||||
|
|
||||||
bool
|
bool
|
||||||
Route::slaved_to (boost::shared_ptr<VCA> vca) const
|
Route::slaved_to (boost::shared_ptr<VCA> vca) const
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user