From ced84dcd48554408d96715853571787cac987d53 Mon Sep 17 00:00:00 2001 From: Paul Ferrand Date: Tue, 17 Dec 2019 12:29:42 +0100 Subject: [PATCH] Removed a useless inline keyword --- src/sfizz/SfzHelpers.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/sfizz/SfzHelpers.h b/src/sfizz/SfzHelpers.h index ff0f15a0..f35333b3 100644 --- a/src/sfizz/SfzHelpers.h +++ b/src/sfizz/SfzHelpers.h @@ -44,7 +44,7 @@ using CCNamePair = std::pair; * @return constexpr float */ template -inline constexpr float centsFactor(T cents, T centsPerOctave = 1200) +constexpr float centsFactor(T cents, T centsPerOctave = 1200) { return std::pow(2.0f, static_cast(cents) / centsPerOctave); } @@ -57,7 +57,7 @@ inline constexpr float centsFactor(T cents, T centsPerOctave = 1200) * @return constexpr float */ template -inline constexpr float normalizeCC(T ccValue) +constexpr float normalizeCC(T ccValue) { static_assert(std::is_integral::value, "Requires an integral T"); return static_cast(std::min(std::max(ccValue, static_cast(0)), static_cast(127))) / 127.0f; @@ -71,7 +71,7 @@ inline constexpr float normalizeCC(T ccValue) * @return constexpr float */ template -inline constexpr float normalizePercents(T percentValue) +constexpr float normalizePercents(T percentValue) { return std::min(std::max(static_cast(percentValue), 0.0f), 100.0f) / 100.0f; } @@ -83,7 +83,7 @@ inline constexpr float normalizePercents(T percentValue) * @param bendValue * @return constexpr float */ -inline constexpr float normalizeBend(int bendValue) +constexpr float normalizeBend(int bendValue) { return std::min(std::max(static_cast(bendValue), -8191.0f), 8191.0f) / 8191.0f; } @@ -96,7 +96,7 @@ inline constexpr float normalizeBend(int bendValue) * @return constexpr float */ template -inline constexpr float normalizeNegativePercents(T percentValue) +constexpr float normalizeNegativePercents(T percentValue) { return std::min(std::max(static_cast(percentValue), -100.0f), 100.0f) / 100.0f; }