mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-08 15:54:57 +01:00
add name() method to VCA
This commit is contained in:
parent
f5c717e893
commit
cfc55e392f
2 changed files with 5 additions and 3 deletions
|
|
@ -35,16 +35,18 @@ class LIBARDOUR_API VCA : public SessionHandleRef {
|
||||||
public:
|
public:
|
||||||
VCA (Session& session, const std::string& name);
|
VCA (Session& session, const std::string& name);
|
||||||
|
|
||||||
|
std::string name() const { return _name; }
|
||||||
|
|
||||||
void set_value (double val, PBD::Controllable::GroupControlDisposition group_override);
|
void set_value (double val, PBD::Controllable::GroupControlDisposition group_override);
|
||||||
double get_value () const;
|
double get_value () const;
|
||||||
|
|
||||||
boost::shared_ptr<AutomationControl> control() const { return _control; }
|
boost::shared_ptr<GainControl> control() const { return _control; }
|
||||||
|
|
||||||
void add (boost::shared_ptr<Route>);
|
void add (boost::shared_ptr<Route>);
|
||||||
void remove (boost::shared_ptr<Route>);
|
void remove (boost::shared_ptr<Route>);
|
||||||
|
|
||||||
private:
|
private:
|
||||||
std::string name;
|
std::string _name;
|
||||||
boost::shared_ptr<GainControl> _control;
|
boost::shared_ptr<GainControl> _control;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -27,7 +27,7 @@ using std::string;
|
||||||
|
|
||||||
VCA::VCA (Session& s, const string& n)
|
VCA::VCA (Session& s, const string& n)
|
||||||
: SessionHandleRef (s)
|
: SessionHandleRef (s)
|
||||||
, name (n)
|
, _name (n)
|
||||||
, _control (new GainControl (s, Evoral::Parameter (GainAutomation), boost::shared_ptr<AutomationList> ()))
|
, _control (new GainControl (s, Evoral::Parameter (GainAutomation), boost::shared_ptr<AutomationList> ()))
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue