add Slavable API for VCA assign/unassign
[ardour.git] / libs / ardour / automation_control.cc
index 97765a7070f032e7a0bdca6565a573c44f95080b..d947a3599f31da1194ac7db36f9736f0ab421049 100644 (file)
@@ -115,12 +115,14 @@ void
 AutomationControl::actually_set_value (double value, PBD::Controllable::GroupControlDisposition gcd)
 {
        bool to_list = _list && boost::dynamic_pointer_cast<AutomationList>(_list)->automation_write();
+       const double old_value = Control::user_double ();
 
        Control::set_double (value, _session.transport_frame(), to_list);
 
        AutomationType at = (AutomationType) _parameter.type();
 
-       std::cerr << "++++ Changed (" << enum_2_string (at) << ", " << enum_2_string (gcd) << ") = " << value << " @ " << this << std::endl;
+       std::cerr << "++++ Changed (" << enum_2_string (at) << ", " << enum_2_string (gcd) << ") = " << value 
+                 << " (was " << old_value << ") @ " << this << std::endl;
        Changed (true, gcd);
 }
 
@@ -282,7 +284,6 @@ AutomationControl::check_rt (double val, Controllable::GroupControlDisposition g
 {
        if (!_session.loading() && (flags() & Controllable::RealTime) && !AudioEngine::instance()->in_process_thread()) {
                /* queue change in RT context */
-               std::cerr << "::set_value (" << val << ", " << enum_2_string (gcd) << ") called for " << enum_2_string ((AutomationType) _parameter.type()) << ", queueing in RT context\n";
                _session.set_control (shared_from_this(), val, gcd);
                return true;
        }