From 6e6b3d325bffe5b654f94cb3ef91c829786bc7a5 Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Thu, 10 May 2012 18:17:47 +0000 Subject: trim a single other region when adjusting xfade length git-svn-id: svn://localhost/ardour2/branches/3.0@12241 d708f5d6-7413-0410-9779-e7cbd77b26cf --- libs/ardour/ardour/region.h | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'libs/ardour/ardour/region.h') diff --git a/libs/ardour/ardour/region.h b/libs/ardour/ardour/region.h index 788a8d90c9..1d7894fac5 100644 --- a/libs/ardour/ardour/region.h +++ b/libs/ardour/ardour/region.h @@ -141,6 +141,15 @@ class Region framepos_t first_frame () const { return _position; } framepos_t last_frame () const { return _position + _length - 1; } + /** Return the earliest possible value of _position given the + * value of _start within the region's sources + */ + framepos_t earliest_possible_position () const; + /** Return the last possible value of _last_frame given the + * value of _startin the regions's sources + */ + framepos_t latest_possible_frame () const; + Evoral::Range last_range () const { return Evoral::Range (_last_position, _last_position + _last_length - 1); } -- cgit v1.2.3