aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2019-04-28 21:49:10 -0700
committerChris Robinson <[email protected]>2019-04-28 21:49:10 -0700
commitace7481b8ec3f6dfa45feda4795913c2206d04f5 (patch)
tree319c4e45379f293d9d5f9ea9f6e7fc0396257de7
parent9d6619efdc35aad2d33878c28b13dc5e56b495a7 (diff)
Only enable NFC with HRTF when hq-mode is enabled
-rw-r--r--Alc/panning.cpp7
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)