From 11af75178bfb283c45363bcdeb690ae9ffdefd7b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Sch=C3=BCrmann?= Date: Mon, 9 Sep 2024 15:02:46 +0200 Subject: [PATCH] Fix use of GroupFeatureState in LoudnessContourEffect --- src/effects/backends/builtin/loudnesscontoureffect.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/effects/backends/builtin/loudnesscontoureffect.cpp b/src/effects/backends/builtin/loudnesscontoureffect.cpp index 359fe96b62d..0bfe811a933 100644 --- a/src/effects/backends/builtin/loudnesscontoureffect.cpp +++ b/src/effects/backends/builtin/loudnesscontoureffect.cpp @@ -103,15 +103,13 @@ void LoudnessContourEffect::processChannel( const mixxx::EngineParameters& engineParameters, const EffectEnableState enableState, const GroupFeatureState& groupFeatures) { - Q_UNUSED(groupFeatures); - double filterGainDb = pState->m_oldFilterGainDb; auto gain = static_cast(pState->m_oldGain); if (enableState != EffectEnableState::Disabling) { bool useGain = m_pUseGain->toBool() && groupFeatures.gain.has_value(); double loudness = m_pLoudness->value(); - double gainKnob = *groupFeatures.gain; + double gainKnob = groupFeatures.gain.value_or(1.0); filterGainDb = loudness;