Skip to content

Commit

Permalink
Slip mode: keep current loop enabled when seeking outside of it
Browse files Browse the repository at this point in the history
  • Loading branch information
ronso0 committed May 9, 2023
1 parent 9df221b commit 31e4bba
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/engine/controls/loopingcontrol.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1060,6 +1060,12 @@ void LoopingControl::slotLoopEndPos(double positionSamples) {

// This is called from the engine thread
void LoopingControl::notifySeek(mixxx::audio::FramePos position) {
// Leave loop alone if we're in slip mode and if it was turned on
// by something that was not a rolling beatloop.
if (m_pSlipEnabled->toBool() && !m_bLoopRollActive) {
return;
}

LoopInfo loopInfo = m_loopInfo.getValue();
const auto currentPosition = m_currentPosition.getValue();
if (m_bLoopingEnabled) {
Expand Down

0 comments on commit 31e4bba

Please sign in to comment.