mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-11 00:56:33 +01:00
* Fixed bug: Discrete control lists are generally not played back
git-svn-id: svn://localhost/ardour2/branches/3.0@4454 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
parent
8048f0309f
commit
d9416a3a6a
1 changed files with 1 additions and 4 deletions
|
|
@ -975,7 +975,7 @@ ControlList::rt_safe_earliest_event_discrete_unlocked (double start, double end,
|
||||||
const bool past_start = (inclusive ? first->when >= start : first->when > start);
|
const bool past_start = (inclusive ? first->when >= start : first->when > start);
|
||||||
|
|
||||||
/* Earliest points is in range, return it */
|
/* Earliest points is in range, return it */
|
||||||
if (past_start >= start && first->when < end) {
|
if (past_start && first->when < end) {
|
||||||
|
|
||||||
x = first->when;
|
x = first->when;
|
||||||
y = first->value;
|
y = first->value;
|
||||||
|
|
@ -987,17 +987,14 @@ ControlList::rt_safe_earliest_event_discrete_unlocked (double start, double end,
|
||||||
|
|
||||||
assert(x >= start);
|
assert(x >= start);
|
||||||
assert(x < end);
|
assert(x < end);
|
||||||
cerr << "returned something" << endl;
|
|
||||||
return true;
|
return true;
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
cerr << "not between start and end" << endl;
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* No points in range */
|
/* No points in range */
|
||||||
} else {
|
} else {
|
||||||
cerr << "no points in range" << endl;
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue