diff options
author | Jan Holthuis <jan.holthuis@ruhr-uni-bochum.de> | 2020-10-28 18:01:04 +0100 |
---|---|---|
committer | Jan Holthuis <jan.holthuis@ruhr-uni-bochum.de> | 2020-10-28 18:01:04 +0100 |
commit | 112fe1840113665eefa2f99195141b876b8f6c8b (patch) | |
tree | a60b3e57636984967aae1f8cf079d8fc895ba444 /src/effects | |
parent | 6f47c864dff524e934b96bd8863516b93546e34f (diff) |
BalanceEffect: Remove wrong freq typecasts to int
Since commit 5b2c009520e1ee3bdd5c29bb477dd09000f51ad0 the `freq`
variable is a double, not an int.
Diffstat (limited to 'src/effects')
-rw-r--r-- | src/effects/builtin/balanceeffect.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/effects/builtin/balanceeffect.cpp b/src/effects/builtin/balanceeffect.cpp index 14e962336a..9c2d44fc5f 100644 --- a/src/effects/builtin/balanceeffect.cpp +++ b/src/effects/builtin/balanceeffect.cpp @@ -130,8 +130,8 @@ void BalanceEffect::processChannel(const ChannelHandle& handle, double freq = pGroupState->m_freq; if (pGroupState->m_oldSampleRate != bufferParameters.sampleRate() || - (freq != static_cast<int>(m_pBypassFreqParameter->value()))) { - freq = static_cast<int>(m_pBypassFreqParameter->value()); + (freq != m_pBypassFreqParameter->value())) { + freq = m_pBypassFreqParameter->value(); pGroupState->m_oldSampleRate = bufferParameters.sampleRate(); pGroupState->setFilters(bufferParameters.sampleRate(), pGroupState->m_freq); } |