From 5ddde0aac790c57b75f20ce71e100f4379f1c653 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Tue, 11 Nov 2008 16:24:27 +0100 Subject: 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. --- src/replay_gain.h | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'src/replay_gain.h') 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; -- cgit v1.2.3