diff options
Diffstat (limited to 'al/eax/utils.h')
-rw-r--r-- | al/eax/utils.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/al/eax/utils.h b/al/eax/utils.h index 8ff75a18..8e0f975f 100644 --- a/al/eax/utils.h +++ b/al/eax/utils.h @@ -4,8 +4,11 @@ #include <algorithm> #include <cstdint> #include <string> +#include <string_view> #include <type_traits> +#include "opthelpers.h" + using EaxDirtyFlags = unsigned int; struct EaxAlLowPassParam { @@ -13,16 +16,13 @@ struct EaxAlLowPassParam { float gain_hf; }; -void eax_log_exception(const char *message) noexcept; +void eax_log_exception(std::string_view message) noexcept; template<typename TException, typename TValue> -void eax_validate_range( - const char* value_name, - const TValue& value, - const TValue& min_value, +void eax_validate_range(std::string_view value_name, const TValue& value, const TValue& min_value, const TValue& max_value) { - if (value >= min_value && value <= max_value) + if(value >= min_value && value <= max_value) LIKELY return; const auto message = |