Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Dont use meter falloff when first loaded
  • Loading branch information
falkTX committed Aug 31, 2022
1 parent 8fdcecb commit bec0810
Showing 1 changed file with 3 additions and 14 deletions.
17 changes: 3 additions & 14 deletions opengl/Quantum.cpp
Expand Up @@ -1213,21 +1213,10 @@ void QuantumStereoLevelMeterWithLUFS::setValueLufs(const float value)

void QuantumStereoLevelMeterWithLUFS::setValues(const float l, const float r, const float lufs)
{
if (l >= falloffL)
{
falloffL = l;
lastTimeL = timeL = app.getTime();
}

if (r >= falloffR)
{
falloffR = r;
lastTimeR = timeR = app.getTime();
}

valueL = l;
valueR = r;
falloffL = valueL = l;
falloffR = valueR = r;
valueLufs = lufs;
lastTimeL = timeL = lastTimeR = timeR = 0;
repaint();
}

Expand Down

0 comments on commit bec0810

Please sign in to comment.