diff options
author | Carl Hetherington <carl@carlh.net> | 2011-03-30 12:37:14 +0000 |
---|---|---|
committer | Carl Hetherington <carl@carlh.net> | 2011-03-30 12:37:14 +0000 |
commit | a8b4169cce468ddb4813c2062b5f03ef258a9f1f (patch) | |
tree | e6ab9fee193216c3bf17f60595a96738bba2a4cc | |
parent | 832e6fb21adda8fa05db725bd8434789bd62b89d (diff) |
Remove some unused methods. Restore Solo boost, SiP cut and Dim Cut correctly on session reload (#3903).
git-svn-id: svn://localhost/ardour2/branches/3.0@9243 d708f5d6-7413-0410-9779-e7cbd77b26cf
-rw-r--r-- | gtk2_ardour/monitor_section.cc | 8 | ||||
-rw-r--r-- | gtk2_ardour/monitor_section.h | 1 | ||||
-rw-r--r-- | gtk2_ardour/volume_controller.cc | 2 | ||||
-rw-r--r-- | libs/ardour/ardour/monitor_processor.h | 5 | ||||
-rw-r--r-- | libs/ardour/monitor_processor.cc | 12 |
5 files changed, 4 insertions, 24 deletions
diff --git a/gtk2_ardour/monitor_section.cc b/gtk2_ardour/monitor_section.cc index 812d62330e..f72e04ea5a 100644 --- a/gtk2_ardour/monitor_section.cc +++ b/gtk2_ardour/monitor_section.cc @@ -982,12 +982,6 @@ MonitorSection::cancel_audition (GdkEventButton*) } void -MonitorSection::solo_cut_changed () -{ - Config->set_solo_mute_gain (slider_position_to_gain (solo_cut_adjustment.get_value())); -} - -void MonitorSection::parameter_changed (std::string name) { if (name == "solo-control-is-listen-control" || @@ -1011,7 +1005,7 @@ MonitorSection::assign_controllables () if (_session) { boost::shared_ptr<Controllable> c = _session->solo_cut_control(); solo_cut_control->set_controllable (c); - solo_cut_control->get_adjustment()->set_value (c->get_value()); + solo_cut_control->get_adjustment()->set_value (gain_to_slider_position (c->get_value())); } else { solo_cut_control->set_controllable (none); } diff --git a/gtk2_ardour/monitor_section.h b/gtk2_ardour/monitor_section.h index fcd452f061..c2a4002226 100644 --- a/gtk2_ardour/monitor_section.h +++ b/gtk2_ardour/monitor_section.h @@ -127,7 +127,6 @@ class MonitorSection : public RouteUI bool cancel_solo (GdkEventButton*); bool cancel_isolate (GdkEventButton*); bool cancel_audition (GdkEventButton*); - void solo_cut_changed (); void update_solo_model (); void parameter_changed (std::string); void isolated_changed (); diff --git a/gtk2_ardour/volume_controller.cc b/gtk2_ardour/volume_controller.cc index b7a562de06..dfb517ebdd 100644 --- a/gtk2_ardour/volume_controller.cc +++ b/gtk2_ardour/volume_controller.cc @@ -49,6 +49,8 @@ VolumeController::set_controllable (boost::shared_ptr<PBD::Controllable> c) if (c) { c->Changed.connect (controllable_connection, MISSING_INVALIDATOR, boost::bind (&VolumeController::controllable_value_changed, this), gui_context()); } + + controllable_value_changed (); } void diff --git a/libs/ardour/ardour/monitor_processor.h b/libs/ardour/ardour/monitor_processor.h index f8675bde2e..d394ab0b81 100644 --- a/libs/ardour/ardour/monitor_processor.h +++ b/libs/ardour/ardour/monitor_processor.h @@ -48,7 +48,7 @@ template<typename T> class MPControl : public PBD::Controllable { /* Controllable API */ - void set_value (double v) { + void set_value (double v) { T newval = (T) v; if (newval != _value) { _value = newval; @@ -126,9 +126,6 @@ class MonitorProcessor : public Processor void set_solo (uint32_t, bool); void set_mono (bool); - void set_dim_level (gain_t); - void set_solo_boost_level (gain_t); - gain_t dim_level() const { return _dim_level; } gain_t solo_boost_level() const { return _solo_boost_level; } diff --git a/libs/ardour/monitor_processor.cc b/libs/ardour/monitor_processor.cc index be4431b98a..7ec2a8ef4c 100644 --- a/libs/ardour/monitor_processor.cc +++ b/libs/ardour/monitor_processor.cc @@ -404,18 +404,6 @@ MonitorProcessor::display_to_user () const return false; } -void -MonitorProcessor::set_dim_level (gain_t val) -{ - _dim_level = val; -} - -void -MonitorProcessor::set_solo_boost_level (gain_t val) -{ - _solo_boost_level = val; -} - bool MonitorProcessor::soloed (uint32_t chn) const { |