diff options
author | Jan Holthuis <jan.holthuis@ruhr-uni-bochum.de> | 2020-10-09 14:59:39 +0200 |
---|---|---|
committer | Jan Holthuis <jan.holthuis@ruhr-uni-bochum.de> | 2020-10-09 14:59:39 +0200 |
commit | ebcb2608dc9a890d946144270d39a254fb6f4cb1 (patch) | |
tree | f6ac7d19760d3a6dbc29d9bbe7baa91ba0b7c037 /src | |
parent | 37945a355149048ac7bf4db29e122c891e8b92cc (diff) |
engine/enginepregain: Fix non-constexpr-able log10() call on macOS
Diffstat (limited to 'src')
-rw-r--r-- | src/engine/enginepregain.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/engine/enginepregain.cpp b/src/engine/enginepregain.cpp index 35a71e0d6a..7a256b26d8 100644 --- a/src/engine/enginepregain.cpp +++ b/src/engine/enginepregain.cpp @@ -11,13 +11,13 @@ #include "util/sample.h" namespace { -constexpr float kSpeedGainMultiplier = - 4.0f; // Bends the speed to gain curve for a natural vinyl sound -constexpr float kMaxTotalGainBySpeed = - 0.9f; // -1 dB to not risk any clipping even for lossy track that may - // have samples above 1.0 -constexpr float kSpeedOneDiv = log10((1 * kSpeedGainMultiplier) + - 1); // value to normalize gain to 1 at speed one + +// Bends the speed to gain curve for a natural vinyl sound +constexpr float kSpeedGainMultiplier = 4.0f; +// -1 dB to not risk any clipping even for lossy track that may have samples above 1.0 +constexpr float kMaxTotalGainBySpeed = 0.9f; +// value to normalize gain to 1 at speed one +const float kSpeedOneDiv = log10((1 * kSpeedGainMultiplier) + 1); } // anonymous namespace ControlPotmeter* EnginePregain::s_pReplayGainBoost = NULL; |