aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2014-11-22 04:51:34 -0800
committerChris Robinson <[email protected]>2014-11-22 04:51:34 -0800
commite41cfeca840f36f4d360fd86b86ee2087940c1e1 (patch)
tree8fa194b0fa07f7a2333292bbe3c5d31b932491bd
parenta27e5e16523e1f6f166410e9992fc40886064eca (diff)
Move a warning check earlier
-rw-r--r--Alc/ALc.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/Alc/ALc.c b/Alc/ALc.c
index 538ed4c3..9a5daab4 100644
--- a/Alc/ALc.c
+++ b/Alc/ALc.c
@@ -1958,6 +1958,14 @@ static ALCenum UpdateDeviceParams(ALCdevice *device, const ALCint *attrList)
device->Frequency, device->UpdateSize, device->NumUpdates
);
+ if((device->UpdateSize&3) != 0)
+ {
+ if((CPUCapFlags&CPU_CAP_SSE))
+ WARN("SSE performs best with multiple of 4 update sizes (%u)\n", device->UpdateSize);
+ if((CPUCapFlags&CPU_CAP_NEON))
+ WARN("NEON performs best with multiple of 4 update sizes (%u)\n", device->UpdateSize);
+ }
+
device->Hrtf = NULL;
if((device->Flags&DEVICE_HRTF_REQUEST))
{
@@ -1986,14 +1994,6 @@ static ALCenum UpdateDeviceParams(ALCdevice *device, const ALCint *attrList)
TRACE("BS2B disabled\n");
}
- if(!device->Hrtf && (device->UpdateSize&3))
- {
- if((CPUCapFlags&CPU_CAP_SSE))
- WARN("SSE performs best with multiple of 4 update sizes (%u)\n", device->UpdateSize);
- if((CPUCapFlags&CPU_CAP_NEON))
- WARN("NEON performs best with multiple of 4 update sizes (%u)\n", device->UpdateSize);
- }
-
aluInitPanning(device);
/* With HRTF enabled, the channels are virtual and get positioned around