aboutsummaryrefslogtreecommitdiffstats
path: root/Alc/alu.cpp
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2019-04-03 10:32:48 -0700
committerChris Robinson <[email protected]>2019-04-03 10:32:48 -0700
commitdc5759f80cfc2ba55727905eb8b58dfbea3dd2ca (patch)
tree59ec082b0979d980c19cc0798d961c159dd525b4 /Alc/alu.cpp
parente66632b301b4d1fdbf51a31bedbc96e9a322dad3 (diff)
Fix MSVC error about parenthesized explicit type conversion
Diffstat (limited to 'Alc/alu.cpp')
-rw-r--r--Alc/alu.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/Alc/alu.cpp b/Alc/alu.cpp
index 938e0929..0021faae 100644
--- a/Alc/alu.cpp
+++ b/Alc/alu.cpp
@@ -601,7 +601,7 @@ void CalcPanningAndFilters(ALvoice *voice, const ALfloat xpos, const ALfloat ypo
ALfloat coeffs[MAX_AMBI_CHANNELS];
if(Device->mRenderMode != StereoPair)
- CalcDirectionCoeffs((float[3]){xpos, ypos, zpos}, Spread, coeffs);
+ CalcDirectionCoeffs({xpos, ypos, zpos}, Spread, coeffs);
else
{
/* Clamp Y, in case rounding errors caused it to end up outside
@@ -834,7 +834,7 @@ void CalcPanningAndFilters(ALvoice *voice, const ALfloat xpos, const ALfloat ypo
*/
ALfloat coeffs[MAX_AMBI_CHANNELS];
if(Device->mRenderMode != StereoPair)
- CalcDirectionCoeffs((float[3]){xpos, ypos, zpos}, Spread, coeffs);
+ CalcDirectionCoeffs({xpos, ypos, zpos}, Spread, coeffs);
else
{
const ALfloat ev{std::asin(clampf(ypos, -1.0f, 1.0f))};