Skip to content

Commit

Permalink
Add some comments
Browse files Browse the repository at this point in the history
  • Loading branch information
daschuer committed Oct 6, 2023
1 parent 430a8f8 commit 8f892dc
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/library/autodj/autodjprocessor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1148,10 +1148,12 @@ double AutoDJProcessor::getOutroEndSecond(DeckAttributes* pDeck) {
const mixxx::audio::FramePos outroEndPosition = pDeck->outroEndPosition();
if (!outroEndPosition.isValid() || outroEndPosition > trackEndPosition) {
double lastSoundSecond = getLastSoundSecond(pDeck);
DEBUG_ASSERT(lastSoundSecond <= framePositionToSeconds(trackEndPosition, pDeck));
if (!outroStartPosition.isValid() || outroStartPosition > trackEndPosition) {
// No outro start and outro end set, use Last Sound.
return lastSoundSecond;
}
// Try to find a better Outro End using Outro Start and transition time
double outroStartSecond = framePositionToSeconds(outroStartPosition, pDeck);
if (m_transitionTime >= 0 && lastSoundSecond > outroStartSecond) {
double outroEndFromTime = outroStartSecond + m_transitionTime;
Expand Down

0 comments on commit 8f892dc

Please sign in to comment.