diff options
author | Robin Gareus <robin@gareus.org> | 2015-10-07 10:42:28 +0200 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2015-10-07 14:21:29 +0200 |
commit | 96b45d49099069981109d8f3f292ad1024649f61 (patch) | |
tree | f948f8e9e346d8ac2a581642ddbce032ba5a740b /libs/evoral/src/ControlSet.cpp | |
parent | 5fd4ee3ef1c422b3907e2a531c10d5c4d7d60674 (diff) |
only subdivide plugin-cycle when automation is playing
PluginInsert::automation_run() subdivides plugin-run on every
control-port automation event (without splitting the process cycle).
libevoral has no automation-control context, hence this function
must be implemented by Automatable.
Diffstat (limited to 'libs/evoral/src/ControlSet.cpp')
-rw-r--r-- | libs/evoral/src/ControlSet.cpp | 32 |
1 files changed, 0 insertions, 32 deletions
diff --git a/libs/evoral/src/ControlSet.cpp b/libs/evoral/src/ControlSet.cpp index f24c410d73..cc8d7c60a7 100644 --- a/libs/evoral/src/ControlSet.cpp +++ b/libs/evoral/src/ControlSet.cpp @@ -87,38 +87,6 @@ ControlSet::control (const Parameter& parameter, bool create_if_missing) } } -bool -ControlSet::find_next_event (double now, double end, ControlEvent& next_event) const -{ - Controls::const_iterator li; - - next_event.when = std::numeric_limits<double>::max(); - - for (li = _controls.begin(); li != _controls.end(); ++li) { - ControlList::const_iterator i; - boost::shared_ptr<const ControlList> alist (li->second->list()); - ControlEvent cp (now, 0.0f); - if (!alist) { - continue; - } - - for (i = lower_bound (alist->begin(), alist->end(), &cp, ControlList::time_comparator); - i != alist->end() && (*i)->when < end; ++i) { - if ((*i)->when > now) { - break; - } - } - - if (i != alist->end() && (*i)->when < end) { - if ((*i)->when < next_event.when) { - next_event.when = (*i)->when; - } - } - } - - return next_event.when != std::numeric_limits<double>::max(); -} - void ControlSet::clear_controls () { |