diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2012-05-10 18:17:47 +0000 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2012-05-10 18:17:47 +0000 |
commit | 6e6b3d325bffe5b654f94cb3ef91c829786bc7a5 (patch) | |
tree | 758b387ea5fbed971660a8a166d5a87ee3778058 /libs/ardour/ardour/region.h | |
parent | 916202ea649fbc430b63afa3e93efde20c52de8a (diff) |
trim a single other region when adjusting xfade length
git-svn-id: svn://localhost/ardour2/branches/3.0@12241 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs/ardour/ardour/region.h')
-rw-r--r-- | libs/ardour/ardour/region.h | 9 |
1 files changed, 9 insertions, 0 deletions
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<framepos_t> last_range () const { return Evoral::Range<framepos_t> (_last_position, _last_position + _last_length - 1); } |