diff options
author | RJ Skerry-Ryan <rryan@mixxx.org> | 2018-11-04 19:58:01 -0800 |
---|---|---|
committer | RJ Skerry-Ryan <rryan@mixxx.org> | 2018-11-21 12:11:52 -0800 |
commit | 1a703f4aca0f0980192f86b3286b50b029cd539e (patch) | |
tree | 1136a1846eb46adb442e84d12c335c1a135e136c /src/engine/enginebuffer.cpp | |
parent | ada44264f7a84011c0177bce6767faf219acf3eb (diff) |
Fix EngineBuffer indicator update rate variables.
The constants suggest the update rate was 10 Hz, but due to a sample
vs. frames difference it is actually 20 Hz. This fixes the constant
values without changing behavior.
Diffstat (limited to 'src/engine/enginebuffer.cpp')
-rw-r--r-- | src/engine/enginebuffer.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/engine/enginebuffer.cpp b/src/engine/enginebuffer.cpp index 3df8c607c5..503b1095d8 100644 --- a/src/engine/enginebuffer.cpp +++ b/src/engine/enginebuffer.cpp @@ -1235,7 +1235,7 @@ void EngineBuffer::updateIndicators(double speed, int iBufferSize) { // Update indicators that are only updated after every // sampleRate/kiUpdateRate samples processed. (e.g. playposSlider) - if (m_iSamplesCalculated > (m_pSampleRate->get() / kiPlaypositionUpdateRate)) { + if (m_iSamplesCalculated > (kSamplesPerFrame * m_pSampleRate->get() / kiPlaypositionUpdateRate)) { const double samplePositionToSeconds = 1.0 / m_trackSampleRateOld / kSamplesPerFrame / m_tempo_ratio_old; m_timeElapsed->set(m_filepos_play * samplePositionToSeconds); |