aboutsummaryrefslogtreecommitdiffstats
path: root/Alc/effects
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2016-07-29 21:55:43 -0700
committerChris Robinson <[email protected]>2016-07-29 21:55:43 -0700
commitb5b3ea95f899410a5392fb633ace74c10bbd9921 (patch)
treebc66330db4d484395d1391fb5bd64cb68edeff6d /Alc/effects
parent96e83f95eef5be8e1f64a1a2e61810cb7b82ff5c (diff)
Add a config to output first-, second-, or third-order ambisonics
Currently incomplete, as second- and third-order output will not correctly handle B-Format input buffers. A standalone up-sampler will be needed, similar to the high-quality decoder. Also, output is ACN ordering with SN3D normalization. A config option will eventually be provided to change this if desired.
Diffstat (limited to 'Alc/effects')
-rw-r--r--Alc/effects/reverb.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/Alc/effects/reverb.c b/Alc/effects/reverb.c
index 9b0dbe1d..7f69e06f 100644
--- a/Alc/effects/reverb.c
+++ b/Alc/effects/reverb.c
@@ -961,7 +961,9 @@ static ALvoid ALreverbState_update(ALreverbState *State, const ALCdevice *Device
props->Reverb.LateReverbPan, gain,
props->Reverb.ReflectionsGain,
props->Reverb.LateReverbGain, State);
- else if(Device->FmtChans == DevFmtBFormat3D || Device->AmbiDecoder)
+ else if(Device->FmtChans == DevFmtBFormat3D || Device->FmtChans == DevFmtAmbi1 ||
+ Device->FmtChans == DevFmtAmbi2 || Device->FmtChans == DevFmtAmbi3 ||
+ Device->AmbiDecoder)
Update3DPanning(Device, props->Reverb.ReflectionsPan,
props->Reverb.LateReverbPan, gain,
props->Reverb.ReflectionsGain,