aboutsummaryrefslogtreecommitdiffstats
path: root/Alc/panning.cpp
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2019-02-21 04:23:01 -0800
committerChris Robinson <[email protected]>2019-02-21 04:23:01 -0800
commit8ac2d34706d1dea7c33f2b33c156cc23dde7b197 (patch)
tree52e5e14d4b63b61a3d663a3d84c2bc9c0c5464c3 /Alc/panning.cpp
parenta9648905378b8a3321742bb0e498227cfc6ee5f6 (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/panning.cpp')
-rw-r--r--Alc/panning.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/Alc/panning.cpp b/Alc/panning.cpp
index 7e8accff..dbbad01b 100644
--- a/Alc/panning.cpp
+++ b/Alc/panning.cpp
@@ -1134,9 +1134,9 @@ no_hrtf:
}
-void aluInitEffectPanning(ALeffectslot *slot)
+void aluInitEffectPanning(ALeffectslot *slot, ALCdevice *device)
{
- const size_t count{4u};
+ const size_t count{AmbiChannelsFromOrder(device->mAmbiOrder)};
slot->WetBuffer.resize(count);
slot->WetBuffer.shrink_to_fit();