diff options
-rw-r--r-- | Alc/panning.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/Alc/panning.cpp b/Alc/panning.cpp index 2b8c8143..9fb0bebb 100644 --- a/Alc/panning.cpp +++ b/Alc/panning.cpp @@ -624,8 +624,11 @@ void InitHrtfPanning(ALCdevice *device) BuildBFormatHrtf(device->mHrtf, device->mHrtfState.get(), device->Dry.NumChannels, AmbiPoints, AmbiMatrix, COUNTOF(AmbiPoints), AmbiOrderHFGain); - HrtfEntry *Hrtf{device->mHrtf}; - InitNearFieldCtrl(device, Hrtf->field[0].distance, ambi_order, ChansPerOrder); + if(GetConfigValueBool(device->DeviceName.c_str(), "decoder", "hq-mode", 0)) + { + HrtfEntry *Hrtf{device->mHrtf}; + InitNearFieldCtrl(device, Hrtf->field[0].distance, ambi_order, ChansPerOrder); + } } void InitUhjPanning(ALCdevice *device) |