mirror of
https://github.com/Ardour/ardour.git
synced 2026-01-26 06:58:22 +01:00
Fix assert failure in control list interpolation.
How we never hit this before is beyond me, it's in some ooooold code.
This commit is contained in:
parent
01493b14cf
commit
cae74309a5
1 changed files with 3 additions and 4 deletions
|
|
@ -1423,9 +1423,10 @@ ControlList::rt_safe_earliest_event_linear_unlocked (double start, double& x, do
|
|||
/* Move left of cache to this point
|
||||
* (Optimize for immediate call this cycle within range) */
|
||||
_search_cache.left = x;
|
||||
//++_search_cache.range.first;
|
||||
assert(x >= start);
|
||||
return true;
|
||||
} else if (next->when < start || (!inclusive && next->when == start)) {
|
||||
/* "Next" is before the start, no points left. */
|
||||
return false;
|
||||
}
|
||||
|
||||
if (fabs(first->value - next->value) <= 1) {
|
||||
|
|
@ -1435,8 +1436,6 @@ ControlList::rt_safe_earliest_event_linear_unlocked (double start, double& x, do
|
|||
/* Move left of cache to this point
|
||||
* (Optimize for immediate call this cycle within range) */
|
||||
_search_cache.left = x;
|
||||
//++_search_cache.range.first;
|
||||
assert(inclusive ? x >= start : x > start);
|
||||
return true;
|
||||
} else {
|
||||
return false;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue