Commit 64eb4370 authored by Stefan Westerfeld's avatar Stefan Westerfeld

Fix bug in limiter max_buffer update.

Signed-off-by: Stefan Westerfeld's avatarStefan Westerfeld <stefan@space.twc.de>
parent 95d09655
......@@ -46,7 +46,7 @@ Limiter::process (const vector<float>& samples)
buffer.insert (buffer.end(), samples.begin(), samples.end());
max_buffer.insert (max_buffer.end(), n_frames, ceiling);
for (size_t i = 0; i < n_frames; i++)
for (size_t i = 0; i < max_buffer.size(); i++)
{
float channel_max = 0;
for (uint c = 0; c < n_channels; c++)
......
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