aboutsummaryrefslogtreecommitdiffstats
path: root/alc/alc.cpp
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2020-05-08 15:38:14 -0700
committerChris Robinson <[email protected]>2020-05-08 15:38:14 -0700
commit1c320c353259c766b39292ed4b2a709e4469762c (patch)
tree055101254912fc6eb1c3c04a8ffefe44125db3c6 /alc/alc.cpp
parent12bb5a47cda0ef6ec1ced73ccf5d267a71f9e710 (diff)
Use a FIR filter for the UHJ all-pass
Diffstat (limited to 'alc/alc.cpp')
-rw-r--r--alc/alc.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/alc/alc.cpp b/alc/alc.cpp
index 040bffa6..6b4bde3f 100644
--- a/alc/alc.cpp
+++ b/alc/alc.cpp
@@ -2084,6 +2084,9 @@ static ALCenum UpdateDeviceParams(ALCdevice *device, const int *attrList)
device->SourcesMax, device->NumMonoSources, device->NumStereoSources,
device->AuxiliaryEffectSlotMax, device->NumAuxSends);
+ if(Uhj2Encoder *uhj{device->Uhj_Encoder.get()})
+ device->FixedLatency += nanoseconds{seconds{uhj->sFilterSize}} / device->Frequency;
+
/* Enable the stablizer only for formats that have front-left, front-right,
* and front-center outputs.
*/