From cc1b774837ac3174244ec0af08882ea0098a2ab0 Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Sun, 14 May 2017 18:50:22 -0700 Subject: Don't enable NFC for a 0 reference delay --- Alc/panning.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Alc/panning.c') 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, -- cgit v1.2.3