summaryrefslogtreecommitdiff
path: root/src/player/CrossFade.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'src/player/CrossFade.cxx')
-rw-r--r--src/player/CrossFade.cxx5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/player/CrossFade.cxx b/src/player/CrossFade.cxx
index 72b3598bb..b31610e66 100644
--- a/src/player/CrossFade.cxx
+++ b/src/player/CrossFade.cxx
@@ -23,10 +23,9 @@
#include "AudioFormat.hxx"
#include "util/NumberParser.hxx"
#include "util/Domain.hxx"
+#include "util/Math.hxx"
#include "Log.hxx"
-#include <cmath>
-
#include <assert.h>
static constexpr Domain cross_fade_domain("cross_fade");
@@ -112,7 +111,7 @@ CrossFadeSettings::Calculate(SignedSongTime total_time,
if (mixramp_delay <= FloatDuration::zero() ||
!mixramp_start || !mixramp_prev_end) {
- chunks = std::lround(duration / chunk_duration);
+ chunks = lround(duration / chunk_duration);
} else {
/* Calculate mixramp overlap. */
const auto mixramp_overlap_current =