Skip to content

Commit

Permalink
Use rate_ratio for track timing
Browse files Browse the repository at this point in the history
This prevents wild numbers from appearing during scratching under vinyl control.
  • Loading branch information
ywwg committed Sep 25, 2022
1 parent a0a8a5f commit 3dec8c0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/engine/enginebuffer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1380,7 +1380,7 @@ void EngineBuffer::updateIndicators(double speed, int iBufferSize) {
const double fFractionalPlaypos = fractionalPlayposFromAbsolute(m_playPosition);

const double tempoTrackSeconds = m_trackEndPositionOld.value() /
m_trackSampleRateOld / m_tempo_ratio_old;
m_trackSampleRateOld / getRateRatio();
if (speed > 0 && fFractionalPlaypos == 1.0) {
// At Track end
speed = 0;
Expand Down

0 comments on commit 3dec8c0

Please sign in to comment.