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/source.cc | |
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/source.cc')
-rw-r--r-- | libs/ardour/source.cc | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/libs/ardour/source.cc b/libs/ardour/source.cc index 5c2ac132e1..61ace5a72b 100644 --- a/libs/ardour/source.cc +++ b/libs/ardour/source.cc @@ -54,7 +54,6 @@ Source::Source (Session& s, DataType type, const string& name, Flag flags) { _analysed = false; _timestamp = 0; - _length = 0; _in_use = 0; } @@ -65,7 +64,6 @@ Source::Source (Session& s, const XMLNode& node) , _timeline_position(0) { _timestamp = 0; - _length = 0; _analysed = false; _in_use = 0; @@ -140,14 +138,6 @@ Source::set_state (const XMLNode& node) } void -Source::update_length (sframes_t pos, sframes_t cnt) -{ - if (pos + cnt > _length) { - _length = pos + cnt; - } -} - -void Source::add_playlist (boost::shared_ptr<Playlist> pl) { std::pair<PlaylistMap::iterator,bool> res; |