Skip to content

Commit 628f1f3

Browse files
committed
Merge branch '2.6' into 'main'
2 parents e36e5db + 9d8e89a commit 628f1f3

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/engine/controls/bpmcontrol.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -601,7 +601,8 @@ double BpmControl::calcSyncAdjustment(bool userTweakingSync) {
601601
adjustment = 1.0;
602602
// When updating the user offset, make sure to remove the existing offset or else it
603603
// will get double-applied.
604-
m_dUserOffset.setValue(error + curUserOffset);
604+
double offset = std::fmod(error + curUserOffset, 1.0f);
605+
m_dUserOffset.setValue(offset);
605606
} else {
606607
// Threshold above which we do sync adjustment.
607608
const double kErrorThreshold = 0.01;

0 commit comments

Comments
 (0)