Commit fb19aa35 authored by Max Kellermann's avatar Max Kellermann

replay_gain_info: fix indentation

parent 6135419a
......@@ -25,19 +25,16 @@ replay_gain_tuple_scale(const struct replay_gain_tuple *tuple, float preamp, flo
{
float scale;
if (replay_gain_tuple_defined(tuple))
{
scale = pow(10.0, tuple->gain / 20.0);
scale *= preamp;
if (scale > 15.0)
scale = 15.0;
if (replay_gain_tuple_defined(tuple)) {
scale = pow(10.0, tuple->gain / 20.0);
scale *= preamp;
if (scale > 15.0)
scale = 15.0;
if (peak_limit)
if (scale * tuple->peak > 1.0)
if (peak_limit && scale * tuple->peak > 1.0)
scale = 1.0 / tuple->peak;
} else {
} else
scale = missing_preamp;
}
return scale;
}
......
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