Commit d1f2a5f05d4745e12da9f1003462f3352fb77597
1 parent
233c5960
Exists in
master
and in
68 other branches
Fix bug with sampling under reference parameter (related to #9202)
Showing
1 changed file
with
1 additions
and
1 deletions
Show diff stats
src/InternLib/Resampling.hh
@@ -467,7 +467,7 @@ public: | @@ -467,7 +467,7 @@ public: | ||
467 | _leftEffect = false; | 467 | _leftEffect = false; |
468 | } else { | 468 | } else { |
469 | if (_markerPtr->getTargetTime() <= timeCurrent) { | 469 | if (_markerPtr->getTargetTime() <= timeCurrent) { |
470 | - while (_markerPtr->getTargetTime() <= timeCurrent) { | 470 | + while ((_markerPtr->getTargetTime() <= timeCurrent) && !_markerPtr->isFinished()) { |
471 | double deltaT = (float) (timeCurrent - _lastTime); | 471 | double deltaT = (float) (timeCurrent - _lastTime); |
472 | if (deltaT <= _gapSize) { | 472 | if (deltaT <= _gapSize) { |
473 | double coefT = (float) (_markerPtr->getTargetTime() - _lastTime) / deltaT; | 473 | double coefT = (float) (_markerPtr->getTargetTime() - _lastTime) / deltaT; |