Commit 95d09655 authored by Stefan Westerfeld's avatar Stefan Westerfeld

Fix limiter bug introduced while adding multi-channel support.

Signed-off-by: Stefan Westerfeld's avatarStefan Westerfeld <stefan@space.twc.de>
parent c19389e0
......@@ -50,7 +50,7 @@ Limiter::process (const vector<float>& samples)
{
float channel_max = 0;
for (uint c = 0; c < n_channels; c++)
channel_max = max (channel_max, fabs (samples[i * n_channels + c]));
channel_max = max (channel_max, fabs (buffer[i * n_channels + c]));
if (channel_max > ceiling)
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment