From e41cfeca840f36f4d360fd86b86ee2087940c1e1 Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Sat, 22 Nov 2014 04:51:34 -0800 Subject: Move a warning check earlier --- Alc/ALc.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'Alc/ALc.c') 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 -- cgit v1.2.3