Skip to content

Commit

Permalink
engine/loopingcontrol: Fix precision loss (wrong use of int)
Browse files Browse the repository at this point in the history
  • Loading branch information
Holzhaus committed Sep 25, 2020
1 parent 400817e commit 90b63fb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/engine/loopingcontrol.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -613,7 +613,7 @@ void LoopingControl::setLoopOutToCurrentPosition() {
BeatsPointer pBeats = m_pBeats;
LoopSamples loopSamples = m_loopSamples.getValue();
double quantizedBeat = -1;
int pos = m_currentSample.getValue();
double pos = m_currentSample.getValue();
if (m_pQuantizeEnabled->toBool() && pBeats) {
if (m_bAdjustingLoopOut) {
double closestBeat = m_pClosestBeat->get();
Expand Down

0 comments on commit 90b63fb

Please sign in to comment.