summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJan Holthuis <jan.holthuis@ruhr-uni-bochum.de>2020-09-25 15:58:28 +0200
committerJan Holthuis <jan.holthuis@ruhr-uni-bochum.de>2020-09-25 16:07:22 +0200
commit44229bcecaf252c3150003da088cd5c8dd463b8d (patch)
treebabcbc0ea5d16afd826fe1e9069990c93636b4cc
parent72ef79ac79683e132ddea11ab1f70cad9bdc26e3 (diff)
effects/builtin/parametriceqeffect: Make casts to CSAMPLE_GAIN explicit
-rw-r--r--src/effects/builtin/parametriceqeffect.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/effects/builtin/parametriceqeffect.cpp b/src/effects/builtin/parametriceqeffect.cpp
index c58c6de042..2a6f8c4250 100644
--- a/src/effects/builtin/parametriceqeffect.cpp
+++ b/src/effects/builtin/parametriceqeffect.cpp
@@ -180,10 +180,10 @@ void ParametricEQEffect::processChannel(const ChannelHandle& handle,
// Ramp to dry, when disabling, this will ramp from dry when enabling as well
fGain[i] = 1.0;
} else {
- fGain[i] = m_pPotGain[i]->value();
+ fGain[i] = static_cast<CSAMPLE_GAIN>(m_pPotGain[i]->value());
}
- fQ[i] = m_pPotQ[i]->value();
- fCenter[i] = m_pPotCenter[i]->value();
+ fQ[i] = static_cast<CSAMPLE_GAIN>(m_pPotQ[i]->value());
+ fCenter[i] = static_cast<CSAMPLE_GAIN>(m_pPotCenter[i]->value());
if (fGain[i] != pState->m_oldGain[i] ||
fQ[i] != pState->m_oldQ[i] ||
fCenter[i] != pState->m_oldCenter[i]) {