diff options
Diffstat (limited to 'alc/panning.cpp')
-rw-r--r-- | alc/panning.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/alc/panning.cpp b/alc/panning.cpp index 22688bc9..ea716e4d 100644 --- a/alc/panning.cpp +++ b/alc/panning.cpp @@ -1093,7 +1093,10 @@ void aluInitRenderer(ALCdevice *device, int hrtf_id, al::optional<StereoEncoding if(stereomode.value_or(StereoEncoding::Default) == StereoEncoding::Uhj) { - device->mUhjEncoder = std::make_unique<UhjEncoder<UhjLengthStd>>(); + if(UhjQuality >= UhjLengthHq) + device->mUhjEncoder = std::make_unique<UhjEncoder<UhjLengthHq>>(); + else + device->mUhjEncoder = std::make_unique<UhjEncoder<UhjLengthLq>>(); TRACE("UHJ enabled\n"); InitUhjPanning(device); device->PostProcess = &ALCdevice::ProcessUhj; |