diff options
author | Max Kellermann <max@duempel.org> | 2008-11-11 16:24:27 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2008-11-11 16:24:27 +0100 |
commit | 5ddde0aac790c57b75f20ce71e100f4379f1c653 (patch) | |
tree | b2e8ec4a99e032bf894002fd436c00e35e3cf5fd /src/replay_gain.h | |
parent | 5e686add91a7c2a89b886d04136983480793a26f (diff) | |
download | mpd-5ddde0aac790c57b75f20ce71e100f4379f1c653.tar.gz mpd-5ddde0aac790c57b75f20ce71e100f4379f1c653.tar.xz mpd-5ddde0aac790c57b75f20ce71e100f4379f1c653.zip |
replay_gain: converted struct replay_gain_info elements to an array
Having an array instead of individual variables allows the use of the
replay_gain_mode enum as an array index.
Diffstat (limited to '')
-rw-r--r-- | src/replay_gain.h | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/src/replay_gain.h b/src/replay_gain.h index d3fae3f46..73e9e1ef0 100644 --- a/src/replay_gain.h +++ b/src/replay_gain.h @@ -30,11 +30,13 @@ struct audio_format; extern enum replay_gain_mode replay_gain_mode; +struct replay_gain_tuple { + float gain; + float peak; +}; + struct replay_gain_info { - float album_gain; - float album_peak; - float track_gain; - float track_peak; + struct replay_gain_tuple tuples[2]; /* used internally by mpd, to mess with it */ float scale; |