diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2016-03-11 10:34:51 -0500 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2016-05-31 15:30:40 -0400 |
commit | 5531c834963726d5a35db078e17a7508f2b9d72d (patch) | |
tree | 79adf0c05ce8a665e2b239579734bc638d704b3b /libs/ardour/route_controls.cc | |
parent | 36784ee94f30213ddbf4360b254e27da7d07c56a (diff) |
change API of Controllable::Changed signal to include (from_self, GroupControlDisposition)
This allows the signal to convey more information, which may be required by some handlers of a control's Changed signal
Diffstat (limited to 'libs/ardour/route_controls.cc')
-rw-r--r-- | libs/ardour/route_controls.cc | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/libs/ardour/route_controls.cc b/libs/ardour/route_controls.cc index 0e6edec758..5992014563 100644 --- a/libs/ardour/route_controls.cc +++ b/libs/ardour/route_controls.cc @@ -158,9 +158,13 @@ Route::SoloControllable::set_value_unchecked (double val) double Route::SoloControllable::get_value () const { + std::cerr << "RSC get value\n"; + if (slaved()) { + std::cerr << "slaved solo control, get master value ... "; Glib::Threads::RWLock::ReaderLock lm (master_lock); - return get_masters_value_locked () ? GAIN_COEFF_UNITY : GAIN_COEFF_ZERO; + double v = get_masters_value_locked () ? GAIN_COEFF_UNITY : GAIN_COEFF_ZERO; + std::cerr << v << std::endl; } if (_list && ((AutomationList*)_list.get())->automation_playback()) { @@ -385,4 +389,3 @@ Route::SoloSafeControllable::get_value () const return r->solo_safe() ? 1.0 : 0.0; } - |