Skip to content

Commit

Permalink
fix formating
Browse files Browse the repository at this point in the history
  • Loading branch information
daschuer committed Mar 4, 2022
1 parent 519a467 commit a7445df
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions src/library/autodj/autodjprocessor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -696,7 +696,8 @@ void AutoDJProcessor::playerPositionChanged(DeckAttributes* pAttributes,
// At least right deck is playing
// Set crossfade thresholds for right deck.
if (sDebug) {
qDebug() << this << "playerPositionChanged" << "right deck playing";
qDebug() << this << "playerPositionChanged"
<< "right deck playing";
}
calculateTransition(rightDeck, leftDeck, false);
}
Expand Down Expand Up @@ -745,7 +746,8 @@ void AutoDJProcessor::playerPositionChanged(DeckAttributes* pAttributes,
// Don't adjust transition when reaching the end. In this case it is
// always stopped.
if (sDebug) {
qDebug() << this << "playerPositionChanged" << "cueing seek";
qDebug() << this << "playerPositionChanged"
<< "cueing seek";
}
calculateTransition(otherDeck, thisDeck, false);
} else if (thisDeck->isRepeat()) {
Expand Down Expand Up @@ -973,11 +975,10 @@ void AutoDJProcessor::playerPlayChanged(DeckAttributes* thisDeck, bool playing)
calculateTransition(thisDeck, getOtherDeck(thisDeck), false);
}
} else {
// Deck paused
// This may happen if the user has previously pressed play on the "to deck"
// before fading, for example to adjust the intro/outro cues, and lets the
// deck play until the end, seek back to the start point instead of keeping
// the deck stopped at the end.
// Deck paused
// This may happen if the user has previously pressed play on the "to deck"
// before fading, for example to adjust the intro/outro cues, and lets the
// deck play until the end, seek back to the start point instead of keeping
if (thisDeck->playPosition() >= 1.0 && !thisDeck->isFromDeck) {
// toDeck has stopped at the end. Recalculate the transition, because
// it has been done from a now irrelevant previous position.
Expand Down

0 comments on commit a7445df

Please sign in to comment.