forward-propagate Changed signals through VCA master-slave connections
[ardour.git] / libs / ardour / route_controls.cc
index 08e083e3fe11dad9a610799c80c692e798a886a7..5ab7524f84d016319100e56cf47ae405aae85cff 100644 (file)
@@ -70,7 +70,7 @@ Route::set_control (AutomationType type, double val, PBD::Controllable::GroupCon
                /* session must mediate group control */
                rl.reset (new RouteList);
                rl->push_back (shared_from_this());
-               _session.set_mute (rl, !muted(), Session::rt_cleanup, group_override);
+               _session.set_mute (rl, val >= 0.5 ? true : false, Session::rt_cleanup, group_override);
                return;
                break;
 
@@ -233,6 +233,7 @@ Route::MuteControllable::get_value () const
 
 Route::PhaseControllable::PhaseControllable (std::string name, boost::shared_ptr<Route> r)
        : RouteAutomationControl (name, PhaseAutomation, boost::shared_ptr<AutomationList>(), r)
+       , _current_phase (0)
 {
        boost::shared_ptr<AutomationList> gl(new AutomationList(Evoral::Parameter(PhaseAutomation)));
        gl->set_interpolation(Evoral::ControlList::Discrete);