diff options
author | Jan Holthuis <jan.holthuis@ruhr-uni-bochum.de> | 2020-10-27 22:58:00 +0100 |
---|---|---|
committer | Jan Holthuis <jan.holthuis@ruhr-uni-bochum.de> | 2020-10-27 23:07:32 +0100 |
commit | 758341f6b30a51e28e3052a1a3f8850ddcf4ec20 (patch) | |
tree | ad709910a989b7ed5e89b257c2602faf89db47c6 /src/engine/enginebuffer.cpp | |
parent | c60e8e727dcbd878c8aea08240c7df7defec7c4e (diff) |
Use more comparisons instead of implicit casts to double
Diffstat (limited to 'src/engine/enginebuffer.cpp')
-rw-r--r-- | src/engine/enginebuffer.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/engine/enginebuffer.cpp b/src/engine/enginebuffer.cpp index 1087fd505b..d81289e1a5 100644 --- a/src/engine/enginebuffer.cpp +++ b/src/engine/enginebuffer.cpp @@ -306,7 +306,7 @@ EngineBuffer::~EngineBuffer() { double EngineBuffer::fractionalPlayposFromAbsolute(double absolutePlaypos) { double fFractionalPlaypos = 0.0; - if (m_trackSamplesOld) { + if (m_trackSamplesOld != 0) { fFractionalPlaypos = math_min<double>(absolutePlaypos, m_trackSamplesOld); fFractionalPlaypos /= m_trackSamplesOld; } @@ -1238,7 +1238,7 @@ void EngineBuffer::postProcess(const int iBufferSize) { } void EngineBuffer::updateIndicators(double speed, int iBufferSize) { - if (!m_trackSampleRateOld) { + if (m_trackSampleRateOld == 0) { // This happens if Deck Passthrough is active but no track is loaded. // We skip indicator updates. return; |