aboutsummaryrefslogtreecommitdiffstats
path: root/alc/effects/equalizer.cpp
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2020-12-04 13:53:56 -0800
committerChris Robinson <[email protected]>2020-12-04 13:53:56 -0800
commit50e33ce8f49fdf40a9c48871d63e2cb49d72c94f (patch)
tree71273dd81371f9b14db1ffe138baf769f471d886 /alc/effects/equalizer.cpp
parentc4132b80ede60ead27fae595623ac61674ed166a (diff)
Change some macros into constexpr variables
Diffstat (limited to 'alc/effects/equalizer.cpp')
-rw-r--r--alc/effects/equalizer.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/alc/effects/equalizer.cpp b/alc/effects/equalizer.cpp
index c311a941..e4544e49 100644
--- a/alc/effects/equalizer.cpp
+++ b/alc/effects/equalizer.cpp
@@ -85,7 +85,7 @@ struct EqualizerState final : public EffectState {
/* Effect gains for each channel */
float CurrentGains[MAX_OUTPUT_CHANNELS]{};
float TargetGains[MAX_OUTPUT_CHANNELS]{};
- } mChans[MAX_AMBI_CHANNELS];
+ } mChans[MaxAmbiChannels];
FloatBufferLine mSampleBuffer{};
@@ -149,7 +149,7 @@ void EqualizerState::update(const ALCcontext *context, const EffectSlot *slot,
}
mOutTarget = target.Main->Buffer;
- auto set_gains = [slot,target](auto &chan, al::span<const float,MAX_AMBI_CHANNELS> coeffs)
+ auto set_gains = [slot,target](auto &chan, al::span<const float,MaxAmbiChannels> coeffs)
{ ComputePanGains(target.Main, coeffs.data(), slot->Gain, chan.TargetGains); };
SetAmbiPanIdentity(std::begin(mChans), slot->Wet.Buffer.size(), set_gains);
}