aboutsummaryrefslogtreecommitdiffstats
path: root/Alc/ALc.c
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2011-06-15 02:00:41 -0700
committerChris Robinson <[email protected]>2011-06-15 02:00:41 -0700
commitf85283c036d5bd88e6981c0c5e6133c937603ad0 (patch)
treece6dd6fcd9780a9cf4aa8bca5ef515ab3441ca47 /Alc/ALc.c
parent14d6ab384d631a397c8e54c5a4dd24a1544324ed (diff)
Don't prematurely set the HRTF flag
Diffstat (limited to 'Alc/ALc.c')
-rw-r--r--Alc/ALc.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/Alc/ALc.c b/Alc/ALc.c
index a990fec0..eeb5723c 100644
--- a/Alc/ALc.c
+++ b/Alc/ALc.c
@@ -1336,9 +1336,6 @@ static ALCboolean UpdateDeviceParams(ALCdevice *device, const ALCint *attrList)
device->NumAuxSends = numSends;
}
- if(!device->IsLoopbackDevice && GetConfigValueBool(NULL, "hrtf", AL_FALSE))
- device->Flags |= DEVICE_USE_HRTF;
-
if((device->Flags&DEVICE_RUNNING))
return ALC_TRUE;
@@ -1358,6 +1355,8 @@ static ALCboolean UpdateDeviceParams(ALCdevice *device, const ALCint *attrList)
device->PendingClicks[i] = 0.0f;
}
+ if(!device->IsLoopbackDevice && GetConfigValueBool(NULL, "hrtf", AL_FALSE))
+ device->Flags |= DEVICE_USE_HRTF;
if(device->FmtChans != DevFmtStereo || device->Frequency != 44100)
{
if((device->Flags&DEVICE_USE_HRTF))