aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2019-01-14 22:30:18 -0800
committerChris Robinson <[email protected]>2019-01-14 22:30:18 -0800
commit101be788e13774d56949b5aa7630f0bee21e32cb (patch)
tree912ebf57b1464b86ec081f74e1e900f86a6440b0
parent867161d55f91622a6e1a4266e31e85a5443f7cfe (diff)
Replace a couple more C math calls
-rw-r--r--Alc/alu.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/Alc/alu.cpp b/Alc/alu.cpp
index f7a8eb6b..ed5cfe6f 100644
--- a/Alc/alu.cpp
+++ b/Alc/alu.cpp
@@ -1097,7 +1097,7 @@ void CalcAttnSourceParams(ALvoice *voice, const ALvoicePropsBase *props, const A
DecayHFDistance[i] = DecayDistance[i] * SendSlots[i]->Params.DecayHFRatio;
if(SendSlots[i]->Params.DecayHFLimit)
{
- ALfloat airAbsorption = SendSlots[i]->Params.AirAbsorptionGainHF;
+ ALfloat airAbsorption{SendSlots[i]->Params.AirAbsorptionGainHF};
if(airAbsorption < 1.0f)
{
/* Calculate the distance to where this effect's air
@@ -1105,7 +1105,7 @@ void CalcAttnSourceParams(ALvoice *voice, const ALvoicePropsBase *props, const A
* decay distance (so it doesn't take any longer to decay
* than the air would allow).
*/
- ALfloat absorb_dist = log10f(REVERB_DECAY_GAIN) / log10f(airAbsorption);
+ ALfloat absorb_dist{std::log10(REVERB_DECAY_GAIN) / std::log10(airAbsorption)};
DecayHFDistance[i] = minf(absorb_dist, DecayHFDistance[i]);
}
}