From 8ac2d34706d1dea7c33f2b33c156cc23dde7b197 Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Thu, 21 Feb 2019 04:23:01 -0800 Subject: Allow processing some effects in higher order ambisonics Reverb notably is still only first-order (any higher order channels are dropped, and it writes to FOAOut). But others, like the equalizer, work on all available channels. --- Alc/effects/modulator.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'Alc/effects/modulator.cpp') diff --git a/Alc/effects/modulator.cpp b/Alc/effects/modulator.cpp index 5786b708..6bfab546 100644 --- a/Alc/effects/modulator.cpp +++ b/Alc/effects/modulator.cpp @@ -129,12 +129,12 @@ void ALmodulatorState::update(const ALCcontext *context, const ALeffectslot *slo for(size_t i{1u};i < slot->WetBuffer.size();++i) mChans[i].Filter.copyParamsFrom(mChans[0].Filter); - mOutBuffer = target.FOAOut->Buffer; - mOutChannels = target.FOAOut->NumChannels; + mOutBuffer = target.Main->Buffer; + mOutChannels = target.Main->NumChannels; for(size_t i{0u};i < slot->WetBuffer.size();++i) { auto coeffs = GetAmbiIdentityRow(i); - ComputePanGains(target.FOAOut, coeffs.data(), slot->Params.Gain, mChans[i].TargetGains); + ComputePanGains(target.Main, coeffs.data(), slot->Params.Gain, mChans[i].TargetGains); } } -- cgit v1.2.3