aboutsummaryrefslogtreecommitdiffstats
path: root/Alc/panning.cpp
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2019-01-05 22:31:13 -0800
committerChris Robinson <[email protected]>2019-01-05 22:31:13 -0800
commit3b91010e21f607196a3927f617164c4fdb68b5e6 (patch)
tree182d2fec05cffa36b28b748d7ec9b5fd6728a1c4 /Alc/panning.cpp
parentaa29bf593342643906514fc4497a4428ec1828ab (diff)
Pass the normalized crossover frequency to the reset method
Diffstat (limited to 'Alc/panning.cpp')
-rw-r--r--Alc/panning.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/Alc/panning.cpp b/Alc/panning.cpp
index a89e0493..8de52308 100644
--- a/Alc/panning.cpp
+++ b/Alc/panning.cpp
@@ -450,7 +450,8 @@ void InitPanning(ALCdevice *device)
""
);
device->AmbiDecoder.reset(new BFormatDec{});
- device->AmbiDecoder->reset(coeffcount, device->Frequency, count, chancoeffs, idxmap);
+ device->AmbiDecoder->reset(coeffcount, 400.0f / static_cast<ALfloat>(device->Frequency),
+ count, chancoeffs, idxmap);
if(coeffcount <= 4)
{