diff options
author | Jan Holthuis <jan.holthuis@ruhr-uni-bochum.de> | 2020-09-25 23:53:45 +0200 |
---|---|---|
committer | Jan Holthuis <jan.holthuis@ruhr-uni-bochum.de> | 2020-09-25 23:55:51 +0200 |
commit | b5047488aa8c0651dd6275ad0283a81fc68e6ace (patch) | |
tree | 92ac97d02b97d51ae18271fe34cf96a28030ed19 /src/engine | |
parent | 3db2519cc93d6a7fafa574abeeadeda4b0f8778a (diff) |
engine/controls/bpmcontrol: Fix some types in bpmcontrol
Diffstat (limited to 'src/engine')
-rw-r--r-- | src/engine/controls/bpmcontrol.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/engine/controls/bpmcontrol.cpp b/src/engine/controls/bpmcontrol.cpp index f55c682ee6..293baab3ce 100644 --- a/src/engine/controls/bpmcontrol.cpp +++ b/src/engine/controls/bpmcontrol.cpp @@ -709,7 +709,7 @@ double BpmControl::getNearestPositionInPhase( // Syncing to after the loop end. if (end_delta > 0 && loop_length > 0.0) { - int i = end_delta / loop_length; + double i = end_delta / loop_length; dNewPlaypos = loop_start_position + end_delta - i * loop_length; // Move new position after loop jump into phase as well. @@ -885,7 +885,7 @@ double BpmControl::getBeatMatchPosition( // Syncing to after the loop end. if (end_delta > 0 && loop_length > 0.0) { - int i = end_delta / loop_length; + double i = end_delta / loop_length; dNewPlaypos = loop_start_position + end_delta - i * loop_length; // Move new position after loop jump into phase as well. |