@@ -275,18 +275,18 @@ namespace lsp
275275 // it gets processed by the dspu::Bypass processor.
276276 for (size_t n=0 ; n<samples; )
277277 {
278- size_t count = lsp_min (samples - n, BUFFER_SIZE);
278+ const size_t count = lsp_min (samples - n, BUFFER_SIZE);
279279
280280 // Pre-process signal (fill buffer)
281- c->sLine .process_ramping (vBuffer, in, c->fWetGain , c->nDelay , samples );
281+ c->sLine .process_ramping (vBuffer, in, c->fWetGain , c->nDelay , count );
282282
283283 // Apply 'dry' control
284284 if (c->fDryGain > 0 .0f )
285285 dsp::fmadd_k3 (vBuffer, in, c->fDryGain , count);
286286
287287 // Compute the gain of input and output signal.
288- in_gain = lsp_max (in_gain, dsp::abs_max (in, samples ));
289- out_gain = lsp_max (out_gain, dsp::abs_max (vBuffer, samples ));
288+ in_gain = lsp_max (in_gain, dsp::abs_max (in, count ));
289+ out_gain = lsp_max (out_gain, dsp::abs_max (vBuffer, count ));
290290
291291 // Process the
292292 // - dry (unprocessed) signal stored in 'in'
@@ -295,9 +295,9 @@ namespace lsp
295295 c->sBypass .process (out, in, vBuffer, count);
296296
297297 // Increment pointers
298- in += count;
299- out += count;
300- n += count;
298+ in += count;
299+ out += count;
300+ n += count;
301301 }
302302
303303 // Update meters
0 commit comments