From 70d53fda9169341f43999bd645402795b93c58ce Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Mon, 10 Aug 2020 10:17:29 -0600 Subject: [PATCH] use Temporal::TimeRange in Region --- libs/ardour/ardour/region.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/libs/ardour/ardour/region.h b/libs/ardour/ardour/region.h index 77fc8c8871..bb4fdd6f10 100644 --- a/libs/ardour/ardour/region.h +++ b/libs/ardour/ardour/region.h @@ -30,6 +30,7 @@ #include #include "temporal/timeline.h" +#include "temporal/range.h" #include "pbd/undo.h" #include "pbd/signals.h" @@ -175,13 +176,12 @@ public: */ samplepos_t latest_possible_sample () const; - Evoral::Range last_range () const { - //return Evoral::Range (_last_position, _last_position + _last_length - 1); - return Evoral::Range (0, 0); + Temporal::TimeRange last_range () const { + return Temporal::TimeRange (_last_position, _last_position + _last_length); } - Evoral::Range range () const { - return Evoral::Range (first_sample(), last_sample()); + Temporal::TimeRange range_samples () const { + return Temporal::TimeRange (first_sample(), first_sample() + length_samples()); } bool hidden () const { return _hidden; }