summaryrefslogtreecommitdiff
path: root/gtk2_ardour/latency_gui.cc
diff options
context:
space:
mode:
authorRobin Gareus <robin@gareus.org>2019-07-17 16:37:01 +0200
committerRobin Gareus <robin@gareus.org>2019-07-17 17:30:53 +0200
commit7f124833363362bd31a806ec9ae8db46ebcdbeb9 (patch)
tree478036d831da6582b1f91056e55eaa76fe80173f /gtk2_ardour/latency_gui.cc
parente68d441aa0aa550554b3a6ae7c3eeb33c0cc993f (diff)
NO-OP: whitespace
Diffstat (limited to 'gtk2_ardour/latency_gui.cc')
-rw-r--r--gtk2_ardour/latency_gui.cc23
1 files changed, 11 insertions, 12 deletions
diff --git a/gtk2_ardour/latency_gui.cc b/gtk2_ardour/latency_gui.cc
index d5ed0c2a32..61e9d15eea 100644
--- a/gtk2_ardour/latency_gui.cc
+++ b/gtk2_ardour/latency_gui.cc
@@ -24,6 +24,8 @@
#include "pbd/convert.h"
#include "pbd/error.h"
+#include "pbd/unwind.h"
+
#include "ardour/latent.h"
#include "gtkmm2ext/utils.h"
@@ -63,16 +65,15 @@ LatencyBarController::get_label (double&)
return s.str ();
}
-LatencyGUI::LatencyGUI (Latent& l, samplepos_t sr, samplepos_t psz)
- : _latent (l),
- initial_value (_latent.effective_latency ()),
- sample_rate (sr),
- period_size (psz),
- ignored (new PBD::IgnorableControllable()),
- /* max 1 second, step by samples, page by msecs */
- adjustment (initial_value, 0.0, sample_rate, 1.0, sample_rate / 1000.0f),
- bc (adjustment, this),
- reset_button (_("Reset"))
+LatencyGUI::LatencyGUI (Latent& l, samplepos_t sr, samplepos_t psz, bool apply)
+ : _latent (l)
+ , initial_value (_latent.effective_latency ())
+ , sample_rate (sr)
+ , period_size (psz)
+ , ignored (new PBD::IgnorableControllable())
+ , adjustment (0, 0.0, sample_rate, 1.0, sample_rate / 1000.0f) /* max 1 second, step by samples, page by msecs */
+ , bc (adjustment, this)
+ , reset_button (_("Reset"))
{
Widget* w;
@@ -175,5 +176,3 @@ LatencyDialog::LatencyDialog (const std::string& title, Latent& l, samplepos_t s
show_all ();
run ();
}
-
-