add ::length() method to Evoral::ControlList
git-svn-id: svn://localhost/ardour2/branches/3.0@12451 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
@@ -106,6 +106,10 @@ public:
|
||||
void set_parameter(const Parameter& p) { _parameter = p; }
|
||||
|
||||
EventList::size_type size() const { return _events.size(); }
|
||||
double length() const {
|
||||
Glib::Mutex::Lock lm (_lock);
|
||||
return _events.empty() ? 0.0 : _events.back()->when;
|
||||
}
|
||||
bool empty() const { return _events.empty(); }
|
||||
|
||||
void reset_default (double val) {
|
||||
|
||||
Reference in New Issue
Block a user