diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2016-01-25 11:47:44 -0500 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2016-01-25 11:47:44 -0500 |
commit | dd32c05cda5760dbdef09a823c6163b7a6660ae7 (patch) | |
tree | b601d377f3e46f58b3262d83f29caa2fd43cc435 /gtk2_ardour/gain_meter.h | |
parent | 22a20c7333a14ac0c4af20287d8643e07ff92903 (diff) |
GainMeter(Base) now has an explicit gain control given to it
Diffstat (limited to 'gtk2_ardour/gain_meter.h')
-rw-r--r-- | gtk2_ardour/gain_meter.h | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/gtk2_ardour/gain_meter.h b/gtk2_ardour/gain_meter.h index 0125c66b11..7cf3410241 100644 --- a/gtk2_ardour/gain_meter.h +++ b/gtk2_ardour/gain_meter.h @@ -49,6 +49,7 @@ namespace ARDOUR { class IO; + class GainControl; class Session; class Route; class RouteGroup; @@ -71,7 +72,8 @@ class GainMeterBase : virtual public sigc::trackable, ARDOUR::SessionHandlePtr virtual void set_controls (boost::shared_ptr<ARDOUR::Route> route, boost::shared_ptr<ARDOUR::PeakMeter> meter, - boost::shared_ptr<ARDOUR::Amp> amp); + boost::shared_ptr<ARDOUR::Amp> amp, + boost::shared_ptr<ARDOUR::GainControl> control); void update_gain_sensitive (); void update_meters (); @@ -104,6 +106,7 @@ class GainMeterBase : virtual public sigc::trackable, ARDOUR::SessionHandlePtr boost::shared_ptr<ARDOUR::Route> _route; boost::shared_ptr<ARDOUR::PeakMeter> _meter; boost::shared_ptr<ARDOUR::Amp> _amp; + boost::shared_ptr<ARDOUR::GainControl> _control; std::vector<sigc::connection> connections; PBD::ScopedConnectionList model_connections; @@ -206,7 +209,8 @@ class GainMeter : public GainMeterBase, public Gtk::VBox virtual void set_controls (boost::shared_ptr<ARDOUR::Route> route, boost::shared_ptr<ARDOUR::PeakMeter> meter, - boost::shared_ptr<ARDOUR::Amp> amp); + boost::shared_ptr<ARDOUR::Amp> amp, + boost::shared_ptr<ARDOUR::GainControl> control); int get_gm_width (); void setup_meters (int len=0); |