Skip to content

Commit

Permalink
Removed extra delay line
Browse files Browse the repository at this point in the history
  • Loading branch information
sadko4u committed Dec 24, 2023
1 parent 52b6ec5 commit 592a8ea
Showing 1 changed file with 10 additions and 9 deletions.
19 changes: 10 additions & 9 deletions src/main/plug/mb_expander.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1301,15 +1301,13 @@ namespace lsp
}
}

// Do frequency boost and input channel analysis
// Do frequency boost
for (size_t i=0; i<channels; ++i)
{
channel_t *c = &vChannels[i];
c->sEnvBoost[0].process(c->vScBuffer, c->vInAnalyze, to_process);
if (bSidechain)
c->sEnvBoost[1].process(c->vExtScBuffer, c->vExtScBuffer, to_process);

vAnalyze[c->nAnInChannel] = c->vInAnalyze;
}

// MAIN PLUGIN STUFF
Expand Down Expand Up @@ -1456,15 +1454,18 @@ namespace lsp

// MAIN PLUGIN STUFF END

// Do output channel analysis
for (size_t i=0; i<channels; ++i)
// Do input and output channel analysis
if (sAnalyzer.activity())
{
channel_t *c = &vChannels[i];
vAnalyze[c->nAnOutChannel] = c->vBuffer;
}
for (size_t i=0; i<channels; ++i)
{
channel_t *c = &vChannels[i];
vAnalyze[c->nAnInChannel] = c->vInAnalyze;
vAnalyze[c->nAnOutChannel] = c->vBuffer;
}

if (sAnalyzer.activity())
sAnalyzer.process(vAnalyze, to_process);
}

// Post-process data (if needed)
if (nMode == MBEM_MS)
Expand Down

0 comments on commit 592a8ea

Please sign in to comment.