diff options
author | Robin Gareus <robin@gareus.org> | 2020-02-19 16:48:11 +0100 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2020-02-19 16:58:06 +0100 |
commit | 7f2a59ca66408c019a77f9a90a940118d7c61642 (patch) | |
tree | 495f6d4c886b6e1e363f2121da9ac69d4aba1a7f /gtk2_ardour/latency_gui.cc | |
parent | 4f9a91cab834bcc0c60ae065cb1d3da969c5d55a (diff) |
Fix Latency GUI numeric entry
Diffstat (limited to 'gtk2_ardour/latency_gui.cc')
-rw-r--r-- | gtk2_ardour/latency_gui.cc | 24 |
1 files changed, 23 insertions, 1 deletions
diff --git a/gtk2_ardour/latency_gui.cc b/gtk2_ardour/latency_gui.cc index 1db8e502d1..e3c8d12dc2 100644 --- a/gtk2_ardour/latency_gui.cc +++ b/gtk2_ardour/latency_gui.cc @@ -59,11 +59,33 @@ LatencyBarController::get_label (double&) _latency_gui->adjustment.get_value(), _latency_gui->sample_rate, true); } +void +LatencyGUIControllable::set_value (double v, PBD::Controllable::GroupControlDisposition group_override) +{ + _latency_gui->adjustment.set_value (v); +} + +double +LatencyGUIControllable::get_value () const +{ + return _latency_gui->adjustment.get_value (); +} +double +LatencyGUIControllable::lower() const +{ + return _latency_gui->adjustment.get_lower (); +} + +double +LatencyGUIControllable::upper() const +{ + return _latency_gui->adjustment.get_upper (); +} + LatencyGUI::LatencyGUI (Latent& l, samplepos_t sr, samplepos_t psz) : _latent (l) , sample_rate (sr) , period_size (psz) - , ignored (new PBD::IgnorableControllable()) , _ignore_change (false) , adjustment (0, 0.0, sample_rate, 1.0, sample_rate / 1000.0f) /* max 1 second, step by samples, page by msecs */ , bc (adjustment, this) |