diff options
author | Robin Gareus <robin@gareus.org> | 2019-07-17 17:04:25 +0200 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2019-07-17 17:31:08 +0200 |
commit | 42fef352992f83bfd135f17726a269056a4684fc (patch) | |
tree | 59f9a7f185c755cb2337e1277ad1bb1881f2833e /gtk2_ardour/latency_gui.h | |
parent | 2fd57d23fa9eb3c5ccb090f30bfc4b7843ac4585 (diff) |
Update Latency GUI behavior
This allows to set the current nominal latency as custom latency.
Previously it was not possible to use the "initial_value" as custom
parameter.
Diffstat (limited to 'gtk2_ardour/latency_gui.h')
-rw-r--r-- | gtk2_ardour/latency_gui.h | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/gtk2_ardour/latency_gui.h b/gtk2_ardour/latency_gui.h index 943944571e..25e469abfc 100644 --- a/gtk2_ardour/latency_gui.h +++ b/gtk2_ardour/latency_gui.h @@ -60,17 +60,19 @@ public: LatencyGUI (ARDOUR::Latent&, samplepos_t sample_rate, samplepos_t period_size); ~LatencyGUI() { } - void finish (); - void reset (); void refresh (); private: + void reset (); + void finish (); + ARDOUR::Latent& _latent; - samplepos_t initial_value; samplepos_t sample_rate; samplepos_t period_size; + boost::shared_ptr<PBD::IgnorableControllable> ignored; + bool _ignore_change; Gtk::Adjustment adjustment; LatencyBarController bc; Gtk::HBox hbox1; |