Skip to content

Commit

Permalink
Merge pull request #10916 from ywwg/temposecondsfix
Browse files Browse the repository at this point in the history
Use rate_ratio for track timing display
  • Loading branch information
daschuer authored Oct 9, 2022
2 parents a970c98 + d051deb commit a2654a1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/engine/enginebuffer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1274,8 +1274,8 @@ void EngineBuffer::updateIndicators(double speed, int iBufferSize) {

const double fFractionalPlaypos = fractionalPlayposFromAbsolute(m_filepos_play);

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

0 comments on commit a2654a1

Please sign in to comment.