mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-11 00:56:33 +01:00
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:
parent
8fe10ed4f8
commit
2d017301f9
1 changed files with 4 additions and 0 deletions
|
|
@ -106,6 +106,10 @@ public:
|
||||||
void set_parameter(const Parameter& p) { _parameter = p; }
|
void set_parameter(const Parameter& p) { _parameter = p; }
|
||||||
|
|
||||||
EventList::size_type size() const { return _events.size(); }
|
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(); }
|
bool empty() const { return _events.empty(); }
|
||||||
|
|
||||||
void reset_default (double val) {
|
void reset_default (double val) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue