diff options
Diffstat (limited to 'alc')
-rw-r--r-- | alc/alc.cpp | 4 | ||||
-rw-r--r-- | alc/panning.cpp | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/alc/alc.cpp b/alc/alc.cpp index f9834197..d17969f4 100644 --- a/alc/alc.cpp +++ b/alc/alc.cpp @@ -2104,8 +2104,8 @@ ALCenum UpdateDeviceParams(ALCdevice *device, const int *attrList) } nanoseconds::rep sample_delay{0}; - if(device->mUhjEncoder) - sample_delay += UhjEncoder::sFilterDelay; + if(auto *encoder{device->mUhjEncoder.get()}) + sample_delay += encoder->getDelay(); if(auto *ambidec = device->AmbiDecoder.get()) { if(ambidec->hasStablizer()) diff --git a/alc/panning.cpp b/alc/panning.cpp index 113ea280..22688bc9 100644 --- a/alc/panning.cpp +++ b/alc/panning.cpp @@ -1093,7 +1093,7 @@ void aluInitRenderer(ALCdevice *device, int hrtf_id, al::optional<StereoEncoding if(stereomode.value_or(StereoEncoding::Default) == StereoEncoding::Uhj) { - device->mUhjEncoder = std::make_unique<UhjEncoder>(); + device->mUhjEncoder = std::make_unique<UhjEncoder<UhjLengthStd>>(); TRACE("UHJ enabled\n"); InitUhjPanning(device); device->PostProcess = &ALCdevice::ProcessUhj; |