diff options
author | Chris Robinson <[email protected]> | 2019-02-21 04:23:01 -0800 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2019-02-21 04:23:01 -0800 |
commit | 8ac2d34706d1dea7c33f2b33c156cc23dde7b197 (patch) | |
tree | 52e5e14d4b63b61a3d663a3d84c2bc9c0c5464c3 /Alc/effects/equalizer.cpp | |
parent | a9648905378b8a3321742bb0e498227cfc6ee5f6 (diff) |
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.
Diffstat (limited to 'Alc/effects/equalizer.cpp')
-rw-r--r-- | Alc/effects/equalizer.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Alc/effects/equalizer.cpp b/Alc/effects/equalizer.cpp index 9abac6ea..c4d2e53f 100644 --- a/Alc/effects/equalizer.cpp +++ b/Alc/effects/equalizer.cpp @@ -149,12 +149,12 @@ void ALequalizerState::update(const ALCcontext *context, const ALeffectslot *slo mChans[i].filter[3].copyParamsFrom(mChans[0].filter[3]); } - 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); } } |