diff options
author | Max Kellermann <max@duempel.org> | 2010-07-20 20:37:36 +0200 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2010-07-20 22:59:04 +0200 |
commit | fb19aa355e566898fcb18bf3a5700a8e5f236696 (patch) | |
tree | 16cb01595384035f4bbc4e78982b7106ec988068 /src/replay_gain_info.c | |
parent | 6135419ac3b958c04422bcb68b0e34fe0dfaaf14 (diff) | |
download | mpd-fb19aa355e566898fcb18bf3a5700a8e5f236696.tar.gz mpd-fb19aa355e566898fcb18bf3a5700a8e5f236696.tar.xz mpd-fb19aa355e566898fcb18bf3a5700a8e5f236696.zip |
replay_gain_info: fix indentation
Diffstat (limited to '')
-rw-r--r-- | src/replay_gain_info.c | 17 |
1 files changed, 7 insertions, 10 deletions
diff --git a/src/replay_gain_info.c b/src/replay_gain_info.c index 66f46def2..3b4ab4577 100644 --- a/src/replay_gain_info.c +++ b/src/replay_gain_info.c @@ -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; } |