diff options
author | Chris Robinson <chris.kcat@gmail.com> | 2020-12-04 13:53:56 -0800 |
---|---|---|
committer | Chris Robinson <chris.kcat@gmail.com> | 2020-12-04 13:53:56 -0800 |
commit | 50e33ce8f49fdf40a9c48871d63e2cb49d72c94f (patch) | |
tree | 71273dd81371f9b14db1ffe138baf769f471d886 /alc/effects/autowah.cpp | |
parent | c4132b80ede60ead27fae595623ac61674ed166a (diff) |
Change some macros into constexpr variables
Diffstat (limited to 'alc/effects/autowah.cpp')
-rw-r--r-- | alc/effects/autowah.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/alc/effects/autowah.cpp b/alc/effects/autowah.cpp index f2ffab44..4e089a80 100644 --- a/alc/effects/autowah.cpp +++ b/alc/effects/autowah.cpp @@ -63,7 +63,7 @@ struct AutowahState final : public EffectState { /* Effect gains for each output channel */ float CurrentGains[MAX_OUTPUT_CHANNELS]; float TargetGains[MAX_OUTPUT_CHANNELS]; - } mChans[MAX_AMBI_CHANNELS]; + } mChans[MaxAmbiChannels]; /* Effects buffers */ alignas(16) float mBufferOut[BufferLineSize]; @@ -121,7 +121,7 @@ void AutowahState::update(const ALCcontext *context, const EffectSlot *slot, mBandwidthNorm = (MAX_FREQ-MIN_FREQ) / frequency; 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); } |