summaryrefslogtreecommitdiff
path: root/libs/ardour/ardour
diff options
context:
space:
mode:
authorLen Ovens <len@ovenwerks.net>2015-11-14 10:39:53 -0800
committerLen Ovens <len@ovenwerks.net>2015-11-14 10:39:53 -0800
commitfb961701785996b01af023f9e0cb59e77fbcd87b (patch)
tree47fc42d6da5bcd2541838178aecf7d2576a519c3 /libs/ardour/ardour
parent456b6adf2b3f82abf20c823fd0cd28cf7e434b7a (diff)
Fix fader in mackie control to work with groups.
Diffstat (limited to 'libs/ardour/ardour')
-rw-r--r--libs/ardour/ardour/route.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/libs/ardour/ardour/route.h b/libs/ardour/ardour/route.h
index 31c8b09cec..af2a7f78a0 100644
--- a/libs/ardour/ardour/route.h
+++ b/libs/ardour/ardour/route.h
@@ -423,6 +423,15 @@ class LIBARDOUR_API Route : public SessionObject, public Automatable, public Rou
uint32_t _current_phase;
};
+ class LIBARDOUR_API GroupGainControllable : public AutomationControl {
+ public:
+ GroupGainControllable (std::string name, boost::shared_ptr<Route>);
+ void set_value (double);
+ // We get the value from the amp where we get the changed signal from
+ //double get_value () const;
+ private:
+ boost::weak_ptr<Route> _route;
+ };
boost::shared_ptr<SoloControllable> solo_control() const {
return _solo_control;
@@ -440,6 +449,10 @@ class LIBARDOUR_API Route : public SessionObject, public Automatable, public Rou
return _phase_control;
}
+ boost::shared_ptr<GroupGainControllable> group_gain_control() const {
+ return _group_gain_control;
+ }
+
/* Route doesn't own these items, but sub-objects that it does own have them
and to make UI code a bit simpler, we provide direct access to them
here.
@@ -579,6 +592,7 @@ class LIBARDOUR_API Route : public SessionObject, public Automatable, public Rou
boost::shared_ptr<MuteControllable> _mute_control;
boost::shared_ptr<MuteMaster> _mute_master;
boost::shared_ptr<PhaseControllable> _phase_control;
+ boost::shared_ptr<GroupGainControllable> _group_gain_control;
virtual void act_on_mute () {}