add slaved_to() and slaved() methods to VCA
This commit is contained in:
parent
b2df48263b
commit
a48888e688
@ -60,6 +60,11 @@ class LIBARDOUR_API VCA : public Stripable,
|
|||||||
XMLNode& get_state();
|
XMLNode& get_state();
|
||||||
int set_state (XMLNode const&, int version);
|
int set_state (XMLNode const&, int version);
|
||||||
|
|
||||||
|
/* Slavable API */
|
||||||
|
|
||||||
|
bool slaved_to (boost::shared_ptr<VCA>) const;
|
||||||
|
bool slaved () const;
|
||||||
|
|
||||||
/* Soloable API */
|
/* Soloable API */
|
||||||
|
|
||||||
void clear_all_solo_state ();
|
void clear_all_solo_state ();
|
||||||
|
@ -172,3 +172,25 @@ VCA::monitoring_state () const
|
|||||||
/* XXX this has to get more complex but not clear how */
|
/* XXX this has to get more complex but not clear how */
|
||||||
return MonitoringInput;
|
return MonitoringInput;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
bool
|
||||||
|
VCA::slaved () const
|
||||||
|
{
|
||||||
|
if (!_gain_control) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
/* just test one particular control, not all of them */
|
||||||
|
return _gain_control->slaved ();
|
||||||
|
}
|
||||||
|
|
||||||
|
bool
|
||||||
|
VCA::slaved_to (boost::shared_ptr<VCA> vca) const
|
||||||
|
{
|
||||||
|
if (!vca || !_gain_control) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* just test one particular control, not all of them */
|
||||||
|
|
||||||
|
return _gain_control->slaved_to (vca->gain_control());
|
||||||
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user