Skip to content

Commit

Permalink
Fix use of GroupFeatureState in LoudnessContourEffect
Browse files Browse the repository at this point in the history
  • Loading branch information
daschuer committed Sep 9, 2024
1 parent 1fecf39 commit 11af751
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/effects/backends/builtin/loudnesscontoureffect.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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<CSAMPLE_GAIN>(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;

Expand Down

0 comments on commit 11af751

Please sign in to comment.