From 6d475c40de567d778fa6f96c379687a8bf83f82b Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Fri, 25 Oct 2013 19:09:22 +0200 Subject: ReplayGainInfo: use CamelCase for struct name --- src/ReplayGainInfo.hxx | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'src/ReplayGainInfo.hxx') diff --git a/src/ReplayGainInfo.hxx b/src/ReplayGainInfo.hxx index bfc5f68a7..2b2d3d3db 100644 --- a/src/ReplayGainInfo.hxx +++ b/src/ReplayGainInfo.hxx @@ -24,50 +24,50 @@ #include -enum replay_gain_mode { +enum ReplayGainMode { REPLAY_GAIN_AUTO = -2, REPLAY_GAIN_OFF, REPLAY_GAIN_ALBUM, REPLAY_GAIN_TRACK, }; -struct replay_gain_tuple { +struct ReplayGainTuple { float gain; float peak; }; -struct replay_gain_info { - struct replay_gain_tuple tuples[2]; +struct ReplayGainInfo { + ReplayGainTuple tuples[2]; }; static inline void -replay_gain_tuple_init(struct replay_gain_tuple *tuple) +replay_gain_tuple_init(ReplayGainTuple *tuple) { tuple->gain = INFINITY; tuple->peak = 0.0; } static inline void -replay_gain_info_init(struct replay_gain_info *info) +replay_gain_info_init(struct ReplayGainInfo *info) { replay_gain_tuple_init(&info->tuples[REPLAY_GAIN_ALBUM]); replay_gain_tuple_init(&info->tuples[REPLAY_GAIN_TRACK]); } static inline bool -replay_gain_tuple_defined(const struct replay_gain_tuple *tuple) +replay_gain_tuple_defined(const ReplayGainTuple *tuple) { return !std::isinf(tuple->gain); } float -replay_gain_tuple_scale(const struct replay_gain_tuple *tuple, float preamp, float missing_preamp, bool peak_limit); +replay_gain_tuple_scale(const ReplayGainTuple *tuple, float preamp, float missing_preamp, bool peak_limit); /** * Attempt to auto-complete missing data. In particular, if album * information is missing, track gain is used. */ void -replay_gain_info_complete(struct replay_gain_info *info); +replay_gain_info_complete(ReplayGainInfo &info); #endif -- cgit v1.2.3