diff options
author | Chris Robinson <[email protected]> | 2014-11-22 04:51:34 -0800 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2014-11-22 04:51:34 -0800 |
commit | e41cfeca840f36f4d360fd86b86ee2087940c1e1 (patch) | |
tree | 8fa194b0fa07f7a2333292bbe3c5d31b932491bd | |
parent | a27e5e16523e1f6f166410e9992fc40886064eca (diff) |
Move a warning check earlier
-rw-r--r-- | Alc/ALc.c | 16 |
1 files changed, 8 insertions, 8 deletions
@@ -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 |