diff options
author | David Robillard <d@drobilla.net> | 2009-02-20 00:30:42 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2009-02-20 00:30:42 +0000 |
commit | c9582da23371bfd40f3087f5a9112d081ef012da (patch) | |
tree | d039fc76d262918d0335941ad5933bf7ccebfd05 /libs/ardour/ardour/region.h | |
parent | bed0d89337b0775e669439ef4e0759feb7ddc74e (diff) |
Make source length a dynamic thing.
Update MIDI region length (actually and visually) when position changes.
git-svn-id: svn://localhost/ardour2/branches/3.0@4644 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs/ardour/ardour/region.h')
-rw-r--r-- | libs/ardour/ardour/region.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/libs/ardour/ardour/region.h b/libs/ardour/ardour/region.h index a4ce35b61b..2696c7da91 100644 --- a/libs/ardour/ardour/region.h +++ b/libs/ardour/ardour/region.h @@ -120,6 +120,8 @@ class Region nframes_t length() const { return _length; } layer_t layer () const { return _layer; } + sframes_t source_length(uint32_t n) const; + /* these two are valid ONLY during a StateChanged signal handler */ nframes_t last_position() const { return _last_position; } @@ -288,7 +290,7 @@ class Region void send_change (Change); void trim_to_internal (nframes_t position, nframes_t length, void *src); - void set_position_internal (nframes_t pos, bool allow_bbt_recompute); + virtual void set_position_internal (nframes_t pos, bool allow_bbt_recompute); bool copied() const { return _flags & Copied; } void maybe_uncopy (); |