diff options
author | Chris Robinson <[email protected]> | 2020-12-04 13:53:56 -0800 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2020-12-04 13:53:56 -0800 |
commit | 50e33ce8f49fdf40a9c48871d63e2cb49d72c94f (patch) | |
tree | 71273dd81371f9b14db1ffe138baf769f471d886 /alc/effects/modulator.cpp | |
parent | c4132b80ede60ead27fae595623ac61674ed166a (diff) |
Change some macros into constexpr variables
Diffstat (limited to 'alc/effects/modulator.cpp')
-rw-r--r-- | alc/effects/modulator.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/alc/effects/modulator.cpp b/alc/effects/modulator.cpp index a0af9890..56394566 100644 --- a/alc/effects/modulator.cpp +++ b/alc/effects/modulator.cpp @@ -78,7 +78,7 @@ struct ModulatorState final : public EffectState { float CurrentGains[MAX_OUTPUT_CHANNELS]{}; float TargetGains[MAX_OUTPUT_CHANNELS]{}; - } mChans[MAX_AMBI_CHANNELS]; + } mChans[MaxAmbiChannels]; void deviceUpdate(const ALCdevice *device) override; @@ -124,7 +124,7 @@ void ModulatorState::update(const ALCcontext *context, const EffectSlot *slot, mChans[i].Filter.copyParamsFrom(mChans[0].Filter); 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); } |