Skip to content

Commit

Permalink
Cue: Remove all sample-based methods
Browse files Browse the repository at this point in the history
These methods are now unused.
  • Loading branch information
Holzhaus committed Jul 6, 2021
1 parent ff1c194 commit a0c8f60
Showing 1 changed file with 0 additions and 27 deletions.
27 changes: 0 additions & 27 deletions src/track/cue.h
Original file line number Diff line number Diff line change
Expand Up @@ -68,37 +68,10 @@ class Cue : public QObject {

mixxx::audio::FramePos getPosition() const;
void setStartPosition(mixxx::audio::FramePos position);
void setStartPosition(double samplePosition) {
mixxx::audio::FramePos position;
if (samplePosition != Cue::kNoPosition) {
position = mixxx::audio::FramePos::fromEngineSamplePos(samplePosition);
}
setStartPosition(position);
}
void setEndPosition(mixxx::audio::FramePos position);
void setEndPosition(double samplePosition) {
mixxx::audio::FramePos position;
if (samplePosition != Cue::kNoPosition) {
position = mixxx::audio::FramePos::fromEngineSamplePos(samplePosition);
}
setEndPosition(position);
}
void setStartAndEndPosition(
mixxx::audio::FramePos startPosition,
mixxx::audio::FramePos endPosition);
void setStartAndEndPosition(
double sampleStartPosition,
double sampleEndPosition) {
mixxx::audio::FramePos startPosition;
mixxx::audio::FramePos endPosition;
if (sampleStartPosition != Cue::kNoPosition) {
startPosition = mixxx::audio::FramePos::fromEngineSamplePos(sampleStartPosition);
}
if (sampleEndPosition != Cue::kNoPosition) {
endPosition = mixxx::audio::FramePos::fromEngineSamplePos(sampleEndPosition);
}
setStartAndEndPosition(startPosition, endPosition);
}
void shiftPositionFrames(mixxx::audio::FrameDiff_t frameOffset);

mixxx::audio::FrameDiff_t getLengthFrames() const;
Expand Down

0 comments on commit a0c8f60

Please sign in to comment.