Skip to content

Commit

Permalink
Lv2Effect: Fix calling checkGate with only wet
Browse files Browse the repository at this point in the history
  • Loading branch information
JohannesLorenz committed May 7, 2020
1 parent c7234aa commit 4c2a52a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions plugins/Lv2Effect/Lv2Effect.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -82,11 +82,11 @@ bool Lv2Effect::processAudioBuffer(sampleFrame *buf, const fpp_t frames)
const float w = corrupt ? 0 : wetLevel();
for(fpp_t f = 0; f < frames; ++f)
{
double l = static_cast<double>(m_tmpOutputSmps[f][0]);
double r = static_cast<double>(m_tmpOutputSmps[f][1]);
outSum += l*l + r*r;
buf[f][0] = d * buf[f][0] + w * m_tmpOutputSmps[f][0];
buf[f][1] = d * buf[f][1] + w * m_tmpOutputSmps[f][1];
double l = static_cast<double>(buf[f][0]);
double r = static_cast<double>(buf[f][1]);
outSum += l*l + r*r;
}
checkGate(outSum / frames);

Expand Down

0 comments on commit 4c2a52a

Please sign in to comment.