summaryrefslogtreecommitdiffstats
path: root/src/engine
diff options
context:
space:
mode:
authorDaniel Schürmann <daschuer@mixxx.org>2020-09-26 13:27:11 +0200
committerGitHub <noreply@github.com>2020-09-26 13:27:11 +0200
commit7ad9de30558cbad2968a9199274e07380f90b861 (patch)
treee16d241bfbfeed1032b69cea990203c862fcdc2b /src/engine
parentc070f09b01df76ebb2540597bd5677d05371a240 (diff)
parentd95394182897a837c33218ef7b6f3fc71b9105f5 (diff)
Merge pull request #3126 from Holzhaus/loopingcontrol-precision-loss
engine/loopingcontrol: Fix precision loss (wrong use of int)
Diffstat (limited to 'src/engine')
-rw-r--r--src/engine/loopingcontrol.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/engine/loopingcontrol.cpp b/src/engine/loopingcontrol.cpp
index adf9953968..2a90532a5c 100644
--- a/src/engine/loopingcontrol.cpp
+++ b/src/engine/loopingcontrol.cpp
@@ -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();