From 56795a97a3dc35fe37e54e2421556ea8650bbb50 Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Wed, 5 Aug 2020 18:41:44 -0600 Subject: [PATCH] changes required to get ardour to start up (missing vars, incorrect values) --- libs/temporal/temporal/timeline.h | 2 +- libs/temporal/timeline.cc | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/libs/temporal/temporal/timeline.h b/libs/temporal/temporal/timeline.h index 33a79dff10..3947c6226b 100644 --- a/libs/temporal/temporal/timeline.h +++ b/libs/temporal/temporal/timeline.h @@ -45,7 +45,7 @@ class timecnt_t; class timepos_t : public int62_t { public: - timepos_t (); + timepos_t () : int62_t (false, 0) {} timepos_t (superclock_t s) : int62_t (false, s) {} explicit timepos_t (timecnt_t const &); /* will throw() if val is negative */ explicit timepos_t (Temporal::Beats const & b) : int62_t (false, b.to_ticks()) {} diff --git a/libs/temporal/timeline.cc b/libs/temporal/timeline.cc index 76705ed267..6cc9cde611 100644 --- a/libs/temporal/timeline.cc +++ b/libs/temporal/timeline.cc @@ -67,7 +67,7 @@ static TemporalStatistics stats; /* timecnt */ -timecnt_t timecnt_t::_max_timecnt (max_samplepos, timepos_t()); +timecnt_t timecnt_t::_max_timecnt (int62_t::max - 1, timepos_t()); timecnt_t::timecnt_t (timecnt_t const & tc, timepos_t const & pos) : _position (pos)