Skip to content

Commit

Permalink
EngineBuffer: Use mixxx::audio::FramePos internally
Browse files Browse the repository at this point in the history
  • Loading branch information
Holzhaus committed Sep 7, 2021
1 parent a0dc7c8 commit 1d9490d
Show file tree
Hide file tree
Showing 5 changed files with 105 additions and 97 deletions.
6 changes: 2 additions & 4 deletions src/engine/controls/bpmcontrol.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -723,8 +723,7 @@ mixxx::audio::FramePos BpmControl::getNearestPositionInPhase(
return thisPosition;
}

const auto otherPosition = mixxx::audio::FramePos::fromEngineSamplePos(
pOtherEngineBuffer->getExactPlayPos());
const auto otherPosition = pOtherEngineBuffer->getExactPlayPos();
if (!BpmControl::getBeatContext(otherBeats,
otherPosition,
nullptr,
Expand Down Expand Up @@ -909,8 +908,7 @@ mixxx::audio::FramePos BpmControl::getBeatMatchPosition(
return thisPosition;
}

const auto otherPosition = mixxx::audio::FramePos::fromEngineSamplePos(
pOtherEngineBuffer->getExactPlayPos());
const auto otherPosition = pOtherEngineBuffer->getExactPlayPos();
const mixxx::audio::SampleRate thisSampleRate = m_pBeats->getSampleRate();

// Seek our next beat to the other next beat near our beat.
Expand Down
Loading

0 comments on commit 1d9490d

Please sign in to comment.