diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2011-05-16 02:17:58 +0000 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2011-05-16 02:17:58 +0000 |
commit | 0a9cef7720ed9bd83442d284d18831437b80a482 (patch) | |
tree | 73f8b7e6780bbaf57bcf14dccb6d759556220cef /libs/ardour/region.cc | |
parent | 88a6513e76e397bdd19d4e76eaf44da8170cf73a (diff) |
very basic Join (regions) editing operation. not finished yet, no undoable, no sensible name for new region, etc. etc
git-svn-id: svn://localhost/ardour2/branches/3.0@9518 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs/ardour/region.cc')
-rw-r--r-- | libs/ardour/region.cc | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/libs/ardour/region.cc b/libs/ardour/region.cc index ff9d31fd2d..93223709e7 100644 --- a/libs/ardour/region.cc +++ b/libs/ardour/region.cc @@ -1660,3 +1660,14 @@ Region::can_trim () const return ct; } +uint32_t +Region::max_source_level () const +{ + uint32_t lvl = 0; + + for (SourceList::const_iterator i = _sources.begin(); i != _sources.end(); ++i) { + lvl = max (lvl, (*i)->level()); + } + + return lvl; +} |