summaryrefslogtreecommitdiff
path: root/src/ReplayGainInfo.hxx
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2013-10-30 18:01:45 +0100
committerMax Kellermann <max@duempel.org>2013-10-30 18:01:45 +0100
commit90c899407afce9d6d8370586e7bdbac0d1415563 (patch)
tree773099c9d6e85a62903e35b338b37ef8c95f76d4 /src/ReplayGainInfo.hxx
parent55868eecd007994188a29686cc4aea17fc1f680a (diff)
ReplayGainInfo: use large negative value instead of infinity
The last piece to allow -ffast-math.
Diffstat (limited to 'src/ReplayGainInfo.hxx')
-rw-r--r--src/ReplayGainInfo.hxx6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/ReplayGainInfo.hxx b/src/ReplayGainInfo.hxx
index 8846a6ed3..b8dfd16a1 100644
--- a/src/ReplayGainInfo.hxx
+++ b/src/ReplayGainInfo.hxx
@@ -23,8 +23,6 @@
#include "check.h"
#include "Compiler.h"
-#include <cmath>
-
enum ReplayGainMode {
REPLAY_GAIN_AUTO = -2,
REPLAY_GAIN_OFF,
@@ -37,13 +35,13 @@ struct ReplayGainTuple {
float peak;
void Clear() {
- gain = INFINITY;
+ gain = -200;
peak = 0.0;
}
gcc_pure
bool IsDefined() const {
- return !std::isinf(gain);
+ return gain > -100;
}
gcc_pure