aboutsummaryrefslogtreecommitdiffstats
path: root/Alc
diff options
context:
space:
mode:
authorMinmin Gong <[email protected]>2019-07-01 22:42:21 -0700
committerkcat <[email protected]>2019-07-01 22:42:20 -0700
commitcee8100f1917ce21052b9cf255eeefdc839ae550 (patch)
treea0fb30d617afa8acf855c3f8c2da4b952ba45dba /Alc
parentbc1d058d2d37bc67e93e30080e8d4d4c2be38edd (diff)
Remove noexcept from sampler functions to match the signature of SamplerT (#309)
This change fixes compilation problems on gcc 9.1 with -std=c++17.
Diffstat (limited to 'Alc')
-rw-r--r--Alc/mixer/mixer_c.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/Alc/mixer/mixer_c.cpp b/Alc/mixer/mixer_c.cpp
index 80942eab..86a9e438 100644
--- a/Alc/mixer/mixer_c.cpp
+++ b/Alc/mixer/mixer_c.cpp
@@ -14,13 +14,13 @@
namespace {
-inline ALfloat do_point(const InterpState&, const ALfloat *RESTRICT vals, const ALsizei) noexcept
+inline ALfloat do_point(const InterpState&, const ALfloat *RESTRICT vals, const ALsizei)
{ return vals[0]; }
-inline ALfloat do_lerp(const InterpState&, const ALfloat *RESTRICT vals, const ALsizei frac) noexcept
+inline ALfloat do_lerp(const InterpState&, const ALfloat *RESTRICT vals, const ALsizei frac)
{ return lerp(vals[0], vals[1], frac * (1.0f/FRACTIONONE)); }
-inline ALfloat do_cubic(const InterpState&, const ALfloat *RESTRICT vals, const ALsizei frac) noexcept
+inline ALfloat do_cubic(const InterpState&, const ALfloat *RESTRICT vals, const ALsizei frac)
{ return cubic(vals[0], vals[1], vals[2], vals[3], frac * (1.0f/FRACTIONONE)); }
-inline ALfloat do_bsinc(const InterpState &istate, const ALfloat *RESTRICT vals, const ALsizei frac) noexcept
+inline ALfloat do_bsinc(const InterpState &istate, const ALfloat *RESTRICT vals, const ALsizei frac)
{
ASSUME(istate.bsinc.m > 0);