From c9582da23371bfd40f3087f5a9112d081ef012da Mon Sep 17 00:00:00 2001 From: David Robillard Date: Fri, 20 Feb 2009 00:30:42 +0000 Subject: 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 --- libs/ardour/ardour/region.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'libs/ardour/ardour/region.h') 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 (); -- cgit v1.2.3