Commit b67de297 authored by Stefan Westerfeld's avatar Stefan Westerfeld

Simplify limiter pre-condition "whole frames" check.

Signed-off-by: Stefan Westerfeld's avatarStefan Westerfeld <stefan@space.twc.de>
parent 975a67f2
......@@ -29,9 +29,7 @@ vector<float>
Limiter::process (const vector<float>& samples)
{
assert (block_size >= 1);
const size_t n_frames = samples.size() / n_channels;
assert (n_frames * n_channels == samples.size()); // need all channels of each frame
assert (samples.size() % n_channels == 0); // process should be called with whole frames
buffer.insert (buffer.end(), samples.begin(), samples.end());
......
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