diff options
author | Colin Fletcher <colin.m.fletcher@googlemail.com> | 2014-05-16 18:50:30 +0100 |
---|---|---|
committer | Colin Fletcher <colin.m.fletcher@googlemail.com> | 2014-07-05 21:47:49 +0100 |
commit | 7815aa1e89e07e2785d6995b94a28a72a96c74cb (patch) | |
tree | 0715e871a2a433631f1bcbf67d15d1a0619a06bb /gtk2_ardour/tempo_dialog.h | |
parent | 61d413ada423f456ad7687b2ae2d39047c7f53a6 (diff) |
Make tap tempo use g_get_monotonic_time(), and fix minimum BPM
gettimeofday() is not guaranteed to be monotonic: use
g_get_monotonic_time() instead.
Also, fix calculation of slowest tap tempo BPM so that the slowest tempo
which can be set by tapping is 10 BPM rather than 240.
Diffstat (limited to 'gtk2_ardour/tempo_dialog.h')
-rw-r--r-- | gtk2_ardour/tempo_dialog.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gtk2_ardour/tempo_dialog.h b/gtk2_ardour/tempo_dialog.h index 9e97afa98d..616be2433e 100644 --- a/gtk2_ardour/tempo_dialog.h +++ b/gtk2_ardour/tempo_dialog.h @@ -57,7 +57,7 @@ private: typedef std::map<std::string,float> NoteTypes; NoteTypes note_types; - struct timeval last_tap; + gint64 last_tap; double average_interval; Gtk::ComboBoxText pulse_selector; |