From 194fcb6bb7d81c5a82c9437c7ed7dfdb7da0a3e1 Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Tue, 19 Feb 2019 15:39:33 -0800 Subject: Rename MAX_AMBI_COEFFS and MAX_AMBI2D_COEFFS --- Alc/effects/chorus.cpp | 2 +- Alc/effects/dedicated.cpp | 2 +- Alc/effects/distortion.cpp | 2 +- Alc/effects/echo.cpp | 2 +- Alc/effects/fshifter.cpp | 2 +- Alc/effects/pshifter.cpp | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) (limited to 'Alc/effects') diff --git a/Alc/effects/chorus.cpp b/Alc/effects/chorus.cpp index 05216059..6b3053a4 100644 --- a/Alc/effects/chorus.cpp +++ b/Alc/effects/chorus.cpp @@ -146,7 +146,7 @@ void ChorusState::update(const ALCcontext *Context, const ALeffectslot *Slot, co mFeedback = props->Chorus.Feedback; /* Gains for left and right sides */ - ALfloat coeffs[2][MAX_AMBI_COEFFS]; + ALfloat coeffs[2][MAX_AMBI_CHANNELS]; CalcAngleCoeffs(al::MathDefs::Pi()*-0.5f, 0.0f, 0.0f, coeffs[0]); CalcAngleCoeffs(al::MathDefs::Pi()* 0.5f, 0.0f, 0.0f, coeffs[1]); diff --git a/Alc/effects/dedicated.cpp b/Alc/effects/dedicated.cpp index 64b24e9d..1804895a 100644 --- a/Alc/effects/dedicated.cpp +++ b/Alc/effects/dedicated.cpp @@ -78,7 +78,7 @@ void ALdedicatedState::update(const ALCcontext* UNUSED(context), const ALeffects } else { - ALfloat coeffs[MAX_AMBI_COEFFS]; + ALfloat coeffs[MAX_AMBI_CHANNELS]; CalcAngleCoeffs(0.0f, 0.0f, 0.0f, coeffs); mOutBuffer = target.Main->Buffer; diff --git a/Alc/effects/distortion.cpp b/Alc/effects/distortion.cpp index 12eb12fb..72ce7062 100644 --- a/Alc/effects/distortion.cpp +++ b/Alc/effects/distortion.cpp @@ -87,7 +87,7 @@ void ALdistortionState::update(const ALCcontext *context, const ALeffectslot *sl calc_rcpQ_from_bandwidth(cutoff / (frequency*4.0f), bandwidth) ); - ALfloat coeffs[MAX_AMBI_COEFFS]; + ALfloat coeffs[MAX_AMBI_CHANNELS]; CalcAngleCoeffs(0.0f, 0.0f, 0.0f, coeffs); mOutBuffer = target.Main->Buffer; diff --git a/Alc/effects/echo.cpp b/Alc/effects/echo.cpp index 197e9686..ad368b5b 100644 --- a/Alc/effects/echo.cpp +++ b/Alc/effects/echo.cpp @@ -115,7 +115,7 @@ void ALechoState::update(const ALCcontext *context, const ALeffectslot *slot, co calc_rcpQ_from_slope(gainhf, 1.0f) ); - ALfloat coeffs[2][MAX_AMBI_COEFFS]; + ALfloat coeffs[2][MAX_AMBI_CHANNELS]; CalcAngleCoeffs(al::MathDefs::Pi()*-0.5f*lrpan, 0.0f, spread, coeffs[0]); CalcAngleCoeffs(al::MathDefs::Pi()* 0.5f*lrpan, 0.0f, spread, coeffs[1]); diff --git a/Alc/effects/fshifter.cpp b/Alc/effects/fshifter.cpp index 55ff4247..5c808a4b 100644 --- a/Alc/effects/fshifter.cpp +++ b/Alc/effects/fshifter.cpp @@ -130,7 +130,7 @@ void ALfshifterState::update(const ALCcontext *context, const ALeffectslot *slot break; } - ALfloat coeffs[MAX_AMBI_COEFFS]; + ALfloat coeffs[MAX_AMBI_CHANNELS]; CalcAngleCoeffs(0.0f, 0.0f, 0.0f, coeffs); mOutBuffer = target.Main->Buffer; diff --git a/Alc/effects/pshifter.cpp b/Alc/effects/pshifter.cpp index 9fe5f867..31d40abc 100644 --- a/Alc/effects/pshifter.cpp +++ b/Alc/effects/pshifter.cpp @@ -181,7 +181,7 @@ void ALpshifterState::update(const ALCcontext* UNUSED(context), const ALeffectsl mPitchShiftI = fastf2i(pitch*FRACTIONONE); mPitchShift = mPitchShiftI * (1.0f/FRACTIONONE); - ALfloat coeffs[MAX_AMBI_COEFFS]; + ALfloat coeffs[MAX_AMBI_CHANNELS]; CalcAngleCoeffs(0.0f, 0.0f, 0.0f, coeffs); mOutBuffer = target.Main->Buffer; -- cgit v1.2.3