diff options
Diffstat (limited to 'libs/ardour/region.cc')
-rw-r--r-- | libs/ardour/region.cc | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/libs/ardour/region.cc b/libs/ardour/region.cc index cad32cd4d7..d4afb7d9c4 100644 --- a/libs/ardour/region.cc +++ b/libs/ardour/region.cc @@ -1478,7 +1478,14 @@ Region::overlap_equivalent (boost::shared_ptr<const Region> other) const } bool -Region::equivalent (boost::shared_ptr<const Region> other) const +Region::enclosed_equivalent (boost::shared_ptr<const Region> other) const +{ + return (first_sample() >= other->first_sample() && last_sample() <= other->last_sample()) || + (first_sample() <= other->first_sample() && last_sample() >= other->last_sample()) ; +} + +bool +Region::exact_equivalent (boost::shared_ptr<const Region> other) const { return _start == other->_start && _position == other->_position && |