aboutsummaryrefslogtreecommitdiffstats
path: root/src/ReplayGainInfo.hxx
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2013-10-02 12:22:12 +0200
committerMax Kellermann <max@duempel.org>2013-10-02 12:22:12 +0200
commit17c6db6c33b9b14a8627b3f9b3da8580a5f932a2 (patch)
tree3a148be084070109465b40077ef80568aef5d172 /src/ReplayGainInfo.hxx
parent86316b182865caf7fd76bee1b6d50c66e11a3ce2 (diff)
downloadmpd-17c6db6c33b9b14a8627b3f9b3da8580a5f932a2.tar.gz
mpd-17c6db6c33b9b14a8627b3f9b3da8580a5f932a2.tar.xz
mpd-17c6db6c33b9b14a8627b3f9b3da8580a5f932a2.zip
replay_gain_*.h: rename to *.hxx
Diffstat (limited to '')
-rw-r--r--src/ReplayGainInfo.hxx (renamed from src/replay_gain_info.h)23
1 files changed, 3 insertions, 20 deletions
diff --git a/src/replay_gain_info.h b/src/ReplayGainInfo.hxx
index b06dc6cf0..bfc5f68a7 100644
--- a/src/replay_gain_info.h
+++ b/src/ReplayGainInfo.hxx
@@ -1,5 +1,5 @@
/*
- * Copyright (C) 2003-2011 The Music Player Daemon Project
+ * Copyright (C) 2003-2013 The Music Player Daemon Project
* http://www.musicpd.org
*
* This program is free software; you can redistribute it and/or modify
@@ -17,17 +17,12 @@
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
-#ifndef MPD_REPLAY_GAIN_INFO_H
-#define MPD_REPLAY_GAIN_INFO_H
+#ifndef MPD_REPLAY_GAIN_INFO_HXX
+#define MPD_REPLAY_GAIN_INFO_HXX
#include "check.h"
-#ifdef __cplusplus
#include <cmath>
-#else
-#include <stdbool.h>
-#include <math.h>
-#endif
enum replay_gain_mode {
REPLAY_GAIN_AUTO = -2,
@@ -62,17 +57,9 @@ replay_gain_info_init(struct replay_gain_info *info)
static inline bool
replay_gain_tuple_defined(const struct replay_gain_tuple *tuple)
{
-#ifdef __cplusplus
return !std::isinf(tuple->gain);
-#else
- return !isinf(tuple->gain);
-#endif
}
-#ifdef __cplusplus
-extern "C" {
-#endif
-
float
replay_gain_tuple_scale(const struct replay_gain_tuple *tuple, float preamp, float missing_preamp, bool peak_limit);
@@ -83,8 +70,4 @@ replay_gain_tuple_scale(const struct replay_gain_tuple *tuple, float preamp, flo
void
replay_gain_info_complete(struct replay_gain_info *info);
-#ifdef __cplusplus
-}
-#endif
-
#endif