From dc5759f80cfc2ba55727905eb8b58dfbea3dd2ca Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Wed, 3 Apr 2019 10:32:48 -0700 Subject: Fix MSVC error about parenthesized explicit type conversion --- Alc/alu.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Alc/alu.cpp') 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))}; -- cgit v1.2.3