aboutsummaryrefslogtreecommitdiffstats
path: root/Alc/panning.c
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2017-05-14 18:50:22 -0700
committerChris Robinson <[email protected]>2017-05-14 18:50:22 -0700
commitcc1b774837ac3174244ec0af08882ea0098a2ab0 (patch)
tree76263ff4993a40b64df0a3cbcd7bcea274d2526d /Alc/panning.c
parent232f05be93ff92dcc71d4d68a8b543c1f2a5bcdb (diff)
Don't enable NFC for a 0 reference delay
Diffstat (limited to 'Alc/panning.c')
-rw-r--r--Alc/panning.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Alc/panning.c b/Alc/panning.c
index 4dcd607b..c00421c9 100644
--- a/Alc/panning.c
+++ b/Alc/panning.c
@@ -668,7 +668,7 @@ static void InitPanning(ALCdevice *device)
ambiup_reset(device->AmbiUp, device);
}
- if(ConfigValueFloat(devname, "decoder", "nfc-ref-delay", &nfc_delay))
+ if(ConfigValueFloat(devname, "decoder", "nfc-ref-delay", &nfc_delay) && nfc_delay > 0.0f)
{
nfc_delay = clampf(nfc_delay, 0.001f, 1000.0f);
InitNearFieldCtrl(device, nfc_delay * SPEEDOFSOUNDMETRESPERSEC,