Skip to content

Commit

Permalink
RekordboxFeature: break long lines
Browse files Browse the repository at this point in the history
  • Loading branch information
Be-ing committed May 12, 2020
1 parent 0ac7ef2 commit c6b66bb
Showing 1 changed file with 26 additions and 4 deletions.
30 changes: 26 additions & 4 deletions src/library/rekordbox/rekordboxfeature.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -907,7 +907,13 @@ void readAnalyze(TrackPointer track, double sampleRate, int timingOffset, bool i
if (hotCueIndex > lastHotCueIndex) {
lastHotCueIndex = hotCueIndex;
}
setHotCue(track, position, Cue::kNoPosition, hotCueIndex, QString(), mixxx::RgbColor::nullopt());
setHotCue(
track,
position,
Cue::kNoPosition,
hotCueIndex,
QString(),
mixxx::RgbColor::nullopt());
} break;
}
}
Expand Down Expand Up @@ -959,8 +965,18 @@ void readAnalyze(TrackPointer track, double sampleRate, int timingOffset, bool i
if (hotCueIndex > lastHotCueIndex) {
lastHotCueIndex = hotCueIndex;
}
setHotCue(
track, position, Cue::kNoPosition, hotCueIndex, toUnicode((*cueExtendedEntry)->comment()), mixxx::RgbColor(qRgb(static_cast<int>((*cueExtendedEntry)->color_red()), static_cast<int>((*cueExtendedEntry)->color_green()), static_cast<int>((*cueExtendedEntry)->color_blue()))));
setHotCue(track,
position,
Cue::kNoPosition,
hotCueIndex,
toUnicode((*cueExtendedEntry)->comment()),
mixxx::RgbColor(qRgb(
static_cast<int>(
(*cueExtendedEntry)->color_red()),
static_cast<int>(
(*cueExtendedEntry)->color_green()),
static_cast<int>((*cueExtendedEntry)
->color_blue()))));
} break;
}
}
Expand Down Expand Up @@ -992,7 +1008,13 @@ void readAnalyze(TrackPointer track, double sampleRate, int timingOffset, bool i
// Mixxx v2.4 will feature multiple loops, so these saved here will be usable
// For 2.3, Mixxx treats them as hotcues and the first one will be loaded as the single loop Mixxx supports
lastHotCueIndex++;
setHotCue(track, memoryCueOrLoop.startPosition, memoryCueOrLoop.endPosition, lastHotCueIndex, memoryCueOrLoop.comment, memoryCueOrLoop.color);
setHotCue(
track,
memoryCueOrLoop.startPosition,
memoryCueOrLoop.endPosition,
lastHotCueIndex,
memoryCueOrLoop.comment,
memoryCueOrLoop.color);
}
}
}
Expand Down

0 comments on commit c6b66bb

Please sign in to comment.